Results 1 to 4 of 4
- 06-02-2008, 12:51 PM #1
Member
- Join Date
- May 2008
- Posts
- 13
- Rep Power
- 0
read the file from different line number
Hi All,
I have a text file.The file size is very big.I have to read the file from different line number.
e.g
File test.txt contains 10000000 lines and more.The 1st thread read the file from line 1 to 1000.2 nd thread read the file from line 1100 to 2000.3 rd thread read the file from line 2100 to 3000.. so on.
Please help me.
Thanks!
vaskar
- 06-02-2008, 01:10 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Ok, what is the purpose of using thread. How did you read 1000 lines at a time.
- 06-02-2008, 01:24 PM #3
I hope he could avoid IOException to that... If his thread will be synchronized externally....
not sure....freedom exists in the world of ideas
- 06-02-2008, 01:31 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Ya, using thread in this case! Lots things to have consider. Not an easy task, I think.
Similar Threads
-
[SOLVED] read last line
By Azndaddy in forum New To JavaReplies: 22Last Post: 04-22-2012, 09:22 PM -
[SOLVED] Line number: ?
By Azndaddy in forum New To JavaReplies: 1Last Post: 04-04-2008, 05:46 AM -
line number
By kazitula in forum New To JavaReplies: 3Last Post: 11-21-2007, 10:27 PM -
how to know the number of the line
By simon in forum New To JavaReplies: 3Last Post: 08-01-2007, 04:59 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks