- Joined
- Aug 25, 2007
- Messages
- 79
- Reaction score
- 0
hi, i need some help in c. At the moment i have some c code that goes to a text file and print off the lines on to a lcd. I was just can you read a html file instead of a text file??? here is how i read the text file...
f1 = fopen("some.txt","r");
while(!feof(f1))
{
fscanf(f1,"%[^\n]\n",line1);
fscanf(f1,"%[^\n]\n",line2);
fscanf(f1,"%[^\n]\n",line3);
fscanf(f1,"%[^\n]\n",line4);
any ideas are welcome. thanks.
faz
f1 = fopen("some.txt","r");
while(!feof(f1))
{
fscanf(f1,"%[^\n]\n",line1);
fscanf(f1,"%[^\n]\n",line2);
fscanf(f1,"%[^\n]\n",line3);
fscanf(f1,"%[^\n]\n",line4);
any ideas are welcome. thanks.
faz