Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

read string from textfile into array

 
Tony Smith
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The nextLine() method in java.util.Scanner?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic