Link to home
Start Free TrialLog in
Avatar of Mickeys
MickeysFlag for Sweden

asked on

Read txt file line by line

I am supposted to read a txt file line by line.

What is the best thing to use? Scanner???
Is there some good example links you know of if it is scanner or whatever it now is best to use

I need to read the file below and put it into a Message array
The first thing in my file is how many times I need to read. For exaple 4 in my file would be for diffrent readings in one array
(String, int, int, int, int, int, int, String, int, int)
TXT file
-----------------------------------------
1
Att lära utan att tänka är meningslöst, att tänka utan att lära är farligt
0
0
255
255
255
0
Serif
1
14

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial