943,691 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1443
  • C RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Dec 16th, 2008
0

Re: read lines from file which gets updated at same time

ok. plz give an overview.
the sequence of steps i mean.
is my understanding correct ?

while(1){

if fgets == NULL{
sleep
clearerr
}
else
read & process string

}
Reputation Points: 10
Solved Threads: 0
Light Poster
CoolAtt is offline Offline
39 posts
since Nov 2008
Dec 16th, 2008
0

Re: read lines from file which gets updated at same time

That looks pretty close.

Remember that just because fgets() did not return NULL does NOT mean that it read a complete input line. (It is possible for fgets to return with a partial line of data if there is a partial line of data at the end of the file.)
Reputation Points: 344
Solved Threads: 116
Practically a Master Poster
Murtan is offline Offline
670 posts
since May 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Printing gets me incorrecting answers
Next Thread in C Forum Timeline: how to add program to start up in C





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC