Results 1 to 2 of 2
  1. #1
    jdepue is offline Member
    Join Date
    Aug 2007
    Posts
    1
    Rep Power
    0

    Default Reading file data that contains no spaces

    Understand that you use token to read the next word/number of a file using delimiters. How do you read data from a file with no spaces and break it up by number of characters?

  2. #2
    brianhks is offline Senior Member
    Join Date
    Jul 2007
    Posts
    135
    Rep Power
    0

    Default

    Is this actual character data you are reading or binary data?
    If it is character data use a FileReader to read a character at a time out of the file.
    If it is binary data use a FileInputStream to read a byte at a time.

    both have the option to read data into either a char[] or a byte[], respectively. This way you can read chunks of the file at a time.

Similar Threads

  1. Reading data form Excel using Jdbc (example)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-13-2008, 11:23 AM
  2. Reading Binary File and Changing data
    By janakiram.attuluri in forum Advanced Java
    Replies: 1
    Last Post: 12-21-2007, 10:10 AM
  3. Reading Data from a file
    By ramachandran in forum New To Java
    Replies: 2
    Last Post: 10-24-2007, 07:22 AM
  4. Reading in data from file line by line
    By bluekswing in forum New To Java
    Replies: 1
    Last Post: 10-02-2007, 12:19 AM
  5. Reading FileInput data
    By Eric in forum Advanced Java
    Replies: 1
    Last Post: 07-05-2007, 06:59 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
  •