• Post Reply Bookmark Topic Watch Topic
  • New Topic

Please any body help me  RSS feed

 
salman moin
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have developed a program in which I read a remote text file line by line from Stock exchange and update my database in the office on dial up connection. For every second 4 or 5 new records added in the file. My application contineously reading that file from 1st to last line. It is very time consuming because very huge data from stock exchange added. Is there any way to just jump to the new records rather reading the file from the first record. Please help me regarding this.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You perobably need to use a RandomAccessFile, you can then keep track of how far through the file you got to last time, and "seek" to that location when you start again.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!