GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes read string from textfile into array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "read string from textfile into array" Watch "read string from textfile into array" New topic
Author

read string from textfile into array

Tony Smith
Ranch Hand

Joined: Jul 07, 2007
Posts: 229
Hi, if a have one line of text in a file, what would be the easiest way to read that line of text into array if I don't know the size of the text?
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

The nextLine() method in java.util.Scanner?


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
GeeCON Prague 2014
 
subject: read string from textfile into array