Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to read fileinputstream into an array?  RSS feed

 
Tony Shivpershad
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thank you,
Tony
 
Tony Shivpershad
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I found a book that explains it to me. Please ignore this thread.

Thanks,
Tony
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!