Results 1 to 2 of 2
  1. #1
    Spooge is offline Member
    Join Date
    Oct 2010
    Posts
    10
    Rep Power
    0

    Question Using UNBUFFERED FileReader.

    I have created my filereader, and am ready to accept input from my external text file. This file has several lines, each of which has 4 distinct sets of 4-6 digit integers separated by spaces. I need to take the first on each line and store it in Array1[], the second number on each line into Array2[], etc. Please post a simple code sample so that I can accurately transfer each number into the appropriate array.
    Example of each line of text:
    123456 789 0123 4567890

    Needs to become
    Array1[0] = 123456
    Array2[0] = 789
    Array3[0] = 0123
    Array4[0] = 4567890

    Total of about 10 lines of text for 4 10-line arrays.

    Th:confused:ank you very much for your help with this! I can't find anyplace online with an example; everyone says to use a buffered reader. I'm not allowed to use a buffered one; it must be UN-buffered. :confused:

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

Similar Threads

  1. FileReader problems
    By Maikl in forum New To Java
    Replies: 3
    Last Post: 12-14-2009, 11:51 AM
  2. FileReader help
    By emp in forum New To Java
    Replies: 1
    Last Post: 07-28-2009, 04:41 AM
  3. add FileReader to GUI
    By VinTiger in forum New To Java
    Replies: 8
    Last Post: 05-11-2009, 12:23 AM
  4. Unbuffered I/O
    By Farzaneh in forum New To Java
    Replies: 6
    Last Post: 08-23-2008, 09:41 AM
  5. Help with filereader in java
    By zoe in forum Advanced Java
    Replies: 2
    Last Post: 07-26-2007, 09:55 AM

Tags for this Thread

Posting Permissions

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