• Post Reply Bookmark Topic Watch Topic
  • New Topic

help with counting the number of lines and tokens  RSS feed

 
jason lunt
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everyone i am stuck with my code i can read in one line of my code but i want to be able to test if i have reached the end of my line or not and when i have i want to be able to read in the next line
and also just say the first line of the file has 10 tokens so i need to have 10 get methods is there a way in which i can change the amount of get methods to be exact with the amount of tokens
for example ben,dave,jim,lee,simon,cris,claire,lauren,frances,alex
now i want 10 get() methods but if the line has 12 tokens i want the get method to change automatcally to 12 get methods is this possible
my code is below
thanks
jason

(edited by Cindy to format code using [ code][ /code] tags.
[ November 26, 2002: Message edited by: Cindy Glass ]
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add some punctuation to that long run on sentence that you have and I might try to READ your question :roll: .
 
Drake Silver
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Cindy Glass:
Add some punctuation to that long run on sentence that you have and I might try to READ your question :roll: .

you know, that's just plain rude.
Way'ta make someone feel welcome on this BB.
 
Drake Silver
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here, try this link:
http://java.sun.com/docs/books/tutorial/i18n/text/boundaryintro.html
I was sent there when I asked a similar Q?.
also, try this link too:
http://java.sun.com/docs/books/tutorial/essential/io/filestreams.html
good luck.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!