I want to open few files using a for loop so i did:
for(f=1;f<=3;f++)
{
str1="itoa(f)";
str2="c:\\test";
str3=".txt";
strcat(str2,str1);
strcat(str2,str3); // str=c:\\test1.txt, c:\\test2.txt
fp= fopen(str2,"r");
if(fp==NULL)
{
printf("\n\ncannot open file\n");
exit();
}
This program gives a lot of errors saying left operand must have a L-value .
please hep.
Thaning you in advance.
Himanshu