- Mon Feb 16, 2009 4:42 am
#66293
Hai All,
This is naz,i'm using MSP430f149,IAR workbench 2.0. Following codes are my code,
[color=green][color=green][code][code]#include<msp430x14x.h>
FILE *fp,*fp1;
unsigned char c;
fp=("read.txt","r");
fp1=("write.txt","w");
if(fp==NULL)
printf("no data");
else
{
while(fgetc(c,fp)!=NULL)
{
fputch(c,fp1);
}
}
fclose(fp);
fclose(fp1);[/code][/code][/color]
}[/color]
problem is 1.it doesn't creat a write file and deoesn't copy the content of one to onther file
This is naz,i'm using MSP430f149,IAR workbench 2.0. Following codes are my code,
[color=green][color=green][code][code]#include<msp430x14x.h>
FILE *fp,*fp1;
unsigned char c;
fp=("read.txt","r");
fp1=("write.txt","w");
if(fp==NULL)
printf("no data");
else
{
while(fgetc(c,fp)!=NULL)
{
fputch(c,fp1);
}
}
fclose(fp);
fclose(fp1);[/code][/code][/color]
}[/color]
problem is 1.it doesn't creat a write file and deoesn't copy the content of one to onther file