the file is input.txt with a paragraph in it
and i need to store each word into an array
how would i go about doing this.
plus i need to check if they are integers
can anyone help?
the file is input.txt with a paragraph in it
and i need to store each word into an array
how would i go about doing this.
plus i need to check if they are integers
can anyone help?
Do what you can first. When you get stuck, post your code so far, post what you can't get done, post any errors you have. Etc.
Provide us as much information as you can so we can help you. We will not do your work for you.
Use code tags, read the FAQ.
Quzah.
Hope is the first step on the road to disappointment.
ok ok
i dont know how to read it in.
The "HOW TO C PROGRAM" lies i dont know what they are talking about
hmm..
i know how to read in set integers and stuff but i dont know how to go about it when i have to do strings, one at a time from a paragraph...
Enjoy.Code:char buf[BUFSIZ] = {0}; ... do stuff ... while( fgets( buf, BUFSIZ, inputFile ) != NULL ) printf("The line read is:\n%s." buf );
Quzah.
Hope is the first step on the road to disappointment.
thanx
i will probably post again later with code this time cuz i always screw up somewhere.