How to read fileinputstream into an array?
posted 11 years ago
Hi Sorry for such a basic question, not sure if I should have asked in the beginner forum, but I'll try my luck here. I've been researching this all afternoon, and stil can't figure out. I need to use fileinputstream to read a file into an array, actually I just need a substring of each line. Once in the array I will sort it, and then use fileoutputstream to write it back to another file. I'm not sure how to this. How would I know how big to make the array?