Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

reading files  RSS feed

 
Lesole Mphinyane
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey all. i have a file named "file.txt" and it has the following contents;

John 18yrs M ID123
Sarah 17yrs F ID132
Peter 19yrs M ID221
Mike 19yrs M ID114
Eve 20yrs F ID134

i want to read all this lines, here is my code.. it only reads the first line and it doesn't stop.


please help... thank you
 
Lesole Mphinyane
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks guys, i figured it out..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!