Results 1 to 2 of 2
Thread: WORDS IN A LINE
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jun 2004
WORDS IN A LINE
in = fopen("/root/mail/inbox/info.txt", "r");
for( i=0 ; tmp[i]!=' ' ; i++ )
Just set a counter to count up from 1 when you read the first line of the file. When it gets to three, print word from that the line then exit your loop."Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy