A good answer might be:Writer |
WriterIO streams are either character-oriented or general purpose, byte-oriented. This chapter will do character-oriented output to a disk file and will use a Writer stream.
If you were doing this on your own, you would decide that some Writer class is probably what you want. Then you would look under "Writer" in your Java documentation for a more specific stream that does what you need. Do that now, if you can. Your documentation might be here: C:\jdk1.2.2\docs\index.html Look under "Basic Features" then "IO" then "Character Streams". Find a class that might be good for writing a disk file. |
QUESTION 2:Does the class FileWriter sound like a likely candidate? Click Here after you have answered the question |