You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
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?
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.