Results 1 to 5 of 5
- 01-20-2009, 05:52 PM #1
Member
- Join Date
- Jan 2009
- Posts
- 21
- Rep Power
- 0
-
I can't imagine that your data file is all that large. The best way is probably to read it all in to a data structure such as an arraylist, and then extract your line. Either that or read the file line by line until you get to the line of interest.
- 01-20-2009, 06:36 PM #3
Member
- Join Date
- Jan 2009
- Posts
- 21
- Rep Power
- 0
Not that its large, its cuz I need to pick up a random puzzle/category for hangman assignment.
But putting it into array list is a good idea cant believe I didnt think of that... Too late now, class ending in few mins and exams tommorow for the rest of the week.
O well
-
Well, good luck on your exams -- knock 'em dead!
- 01-20-2009, 08:28 PM #5
Member
- Join Date
- Jan 2009
- Posts
- 21
- Rep Power
- 0
Similar Threads
-
[SOLVED] read last line
By Azndaddy in forum New To JavaReplies: 22Last Post: 04-22-2012, 09:22 PM -
[SOLVED] Read/write files using applets
By coolFrenzi in forum Advanced JavaReplies: 3Last Post: 11-17-2008, 10:45 PM -
read the file from different line number
By vaskarbasak in forum Advanced JavaReplies: 3Last Post: 06-02-2008, 01:31 PM -
Random Access Files concept
By AralX in forum New To JavaReplies: 2Last Post: 12-25-2007, 07:04 PM -
Reading in data from file line by line
By bluekswing in forum New To JavaReplies: 1Last Post: 10-02-2007, 12:19 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks