Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to read text from a notepad file

807599Mar 14 2007 — edited Mar 30 2007
Hey guys

I've been searching the internet and the forums on how to read some text from notepad that i've stored, but i've come up short. Does anyone know how i can do this. I'm currently using the File...FileOutputStream...PrintWriter combonation to tell it where to output the file, then what to make the file and what to put in it. Anyone have any ideas of how i can implement some methods to open the notepad file, read it (i printed in the notepad file with println so it would go read one line then the next), define the variables as the ones in the notepad files, and then close the file? if you lead me to a tutorial then i'll read up on it but I'm just stuck so ya.

hwrd

PS If i can do all that without opening another window then that would be great.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2007
Added on Mar 14 2007
19 comments
1,909 views