• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with implementing the Read File and modify my code,  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I have the file test.txt that include:

The [Computers] , [Cars] are Category, Keyboards, Mouse,Lamborghini, BMW, are Descriptors and the numbers are values





i have this code until now.



All i want is that my program can read the entire txt file and output in console the Category Destriptors and Value.

Example:

 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
enache vlad wrote:All i want is that my program can read the entire txt file

For that you need the Java I/O tutorial
 
Marshal
Posts: 56600
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!