Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > reading a text ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 45757 of 45898
Post > Topic >>

reading a text file at certain timeouts

by "friend.blah@[EMAIL PROTECTED] " <friend.blah@[EMAIL PROTECTED] > May 5, 2008 at 01:45 AM

i have a text  file lets say in this format

abc abs ajfhg agjfh
fhs ghg jhgjs fjhg
dj djk djghd dkfdf
....
....
......

i want to read the first line at certain time for eg : at 10clk
and the next time when i am reading the text file for eg a timeout of
10 min (@[EMAIL PROTECTED]
 10:10) i want to read only the second line skipping the
first line
and at 10:20 (again after timeout of 10 min) i wanna read only the 3rd
line skipping 1st and 2nd lines
and so on...

this 10 min time is not fixed..it varies for line to line....i wrote
this time for convenience...

i tried with a counter such that when i read the first line i am
incrementing the counter and comparing when i am read the next
time...somehow i am missing something, i am not getting the proper
result...

thanks for any help..




 3 Posts in Topic:
reading a text file at certain timeouts
"friend.blah@[EMAIL   2008-05-05 01:45:53 
Re: reading a text file at certain timeouts
"Jim Langston"   2008-05-05 02:45:34 
Re: reading a text file at certain timeouts
"Bruintje Beer"  2008-05-05 17:55:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 19:09:37 CDT 2008.