Read txt file line by line

Posted on 2009-04-28
Last Modified: 2012-05-06
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



Att lära utan att tänka är meningslöst, att tänka utan att lära är farligt










Open in new window

Question by:Mickeys
    1 Comment
    LVL 92

    Accepted Solution


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now