Hi all,
i have a receiver windows application which receives stream from a port (Logical port) on which my clients is sending me some feed.
my receiver receives the feed and write it in to a text file.
I have an other application which reads the text file parse it and dump it in to mysql database.
if for some reasons if i have to stop (close) my application which dumps data in to database and restart it. after restarting the application i want to read the text file where i left it while reading it before.
i mean to say that if i have read 100 lines from text file out of 1000 and for some reasons i have to close my application.
now i start my application again and want to start from 101 line.
bellow is the text file format
"31/07/12 11:31:18","GOLD-OC12","","TRD","","",""
"31/07/12 11:31:18","GOLD-OC12","","ORD","49433","50","49485","50","",""
"31/07/12 11:31:18","GOLD-OC12","","TRD","","",""
"31/07/12 11:31:18","GOLD-OC12","","ORD","49435","50","49485","50","",""
"31/07/12 11:31:18","GOLDKILO-OC12","","TRD","","",""
"31/07/12 11:31:18","GOLDKILO-OC12","","ORD","49403","5","49454","5","",""
"31/07/12 11:31:18","GOLDKILO-OC12","","TRD","","",""
"31/07/12 11:31:18","GOLDKILO-OC12","","ORD","49405","5","49454","5","",""
"31/07/12 11:31:18","GO100OZ-OC12","","TRD","1622.5","1","5"
"31/07/12 11:31:18","GO100OZ-C12","","ORD","1622.4","50","1622.8","50","1622.5","1"
"31/07/12 11:31:18","GO100OZ-OC12","","TRD","1622.5","1","5"
"31/07/12 11:31:18","GO100OZ-C12","","ORD","1622.4","50","1622.8","50","1622.5","1"