Writing keyboard input into a file- simple writing program

Hi guys

im trying to figure out a basic how to type input to the screen and it be written to a file. The only problem is that my book is overcomplicating the matter and i cannot work out just the basic method- to expand upon later

can anyone help?

[266 byte] By [futureaussiectoa] at [2007-11-27 11:17:44]
# 1

You need to do 2 things: 1) Read the user's input, and 2) Create a file and store the input in it.

Here's tutorial examples of ways to read user input:

http://java.sun.com/docs/books/tutorial/essential/io/cl.html

And here's tutorial examples of creating files and writing data to them:

http://java.sun.com/docs/books/tutorial/essential/io/file.html

All you need to do is to combine some code.

ChuckBinga at 2007-7-29 14:26:40 > top of Java-index,Core,Core APIs...