Results 1 to 2 of 2
  1. #1
    trofyscarz is offline Member
    Join Date
    Oct 2008
    Posts
    2
    Rep Power
    0

    Default reading text file

    here is what im trying to figure out. I need to read a text file into a program evaluate the content and place in an array for future use. Heres how a line of text looks:

    tab is whitespace between the Long values.
    always 2 Long values

    0 (tab) 1454
    ... .......
    .. ......

    I am using Scanner and have found a way to accomplish this, but I know there is an easier way.

    is there any way I can do this : Line = 0 (tab) 1454
    and break that down into two variables.
    S1 = 0; S2= 1454;

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

Similar Threads

  1. Reading a text file
    By diegosened in forum New To Java
    Replies: 4
    Last Post: 01-15-2010, 11:32 PM
  2. Reading Text File with Certain Conditions
    By balaji csc in forum New To Java
    Replies: 1
    Last Post: 11-10-2009, 11:38 AM
  3. Reg: Reading Files from Text file
    By balaji csc in forum New To Java
    Replies: 1
    Last Post: 11-09-2009, 11:06 AM
  4. Reading two text file and sum them up
    By matt_well in forum New To Java
    Replies: 36
    Last Post: 07-22-2008, 02:55 AM
  5. Reading text file
    By Lennon-Guru in forum New To Java
    Replies: 1
    Last Post: 12-15-2007, 11:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •