Results 1 to 3 of 3
  1. #1
    Cheguvara is offline Member
    Join Date
    Feb 2010
    Posts
    2
    Rep Power
    0

    Default Reading data from a text file

    Hi everyone..am a newbie to java.I am stuck with a program where I'm trying to read the content of a text file into arrays of different data types.I am using I/O streams to read each line the text file and then using the "StringTokenizer" command and then parsing the string into different data types.Is this a good way to read. Also I like to know any other better methods...please help:)
    Attached Files Attached Files
    Last edited by Cheguvara; 02-01-2010 at 01:23 PM.

  2. #2
    Lil_Aziz1's Avatar
    Lil_Aziz1 is offline Senior Member
    Join Date
    Dec 2009
    Location
    United States
    Posts
    343
    Rep Power
    5

    Default

    It would be beneficial to you if you posted the code. Please make sure you put them in [code] brackets.
    "Experience is what you get when you don't get what you want" (Dan Stanford)
    "Rise and rise again until lambs become lions" (Robin Hood)

  3. #3
    Cheguvara is offline Member
    Join Date
    Feb 2010
    Posts
    2
    Rep Power
    0

    Default

    Dear Lil_Aziz1...I've given the code as attachments.Please check them.:)

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 data from text file .. help plz
    By Thug heart in forum New To Java
    Replies: 7
    Last Post: 02-15-2009, 07:29 PM
  3. 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
  4. Reading text file
    By Lennon-Guru in forum New To Java
    Replies: 1
    Last Post: 12-15-2007, 11:38 PM
  5. Reading Data from a file
    By ramachandran in forum New To Java
    Replies: 2
    Last Post: 10-24-2007, 07:22 AM

Posting Permissions

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