newbee2
Technical User
- Apr 21, 2002
- 85
I want to make a small program which reads plain text file from a disk and stores the text in StringBuffer. How do I do that?
I tryed using DataInputStream with the following:
dis.readUTF();
but it doesn't seem to work. It works only if the text file was created with the DataOutputStream and does not work with a "normal" text file...
Thanks in advance
I tryed using DataInputStream with the following:
dis.readUTF();
but it doesn't seem to work. It works only if the text file was created with the DataOutputStream and does not work with a "normal" text file...
Thanks in advance