English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

In java language how to input data into a file by entering through keyboard so that we can write our database in the file and save it in that file?What are the complete programming steps?I need all the steps from starting to end....

2006-11-01 20:36:01 · 3 answers · asked by RAJAT M 1 in Computers & Internet Programming & Design

how to input data in a file through keyboard in order to make a database file or to save that file in JAVA.

2006-11-01 20:38:05 · update #1

3 answers

too many questions ...

how to input data into a file by entering through keyboard - for this you may use stdin for console, and SWING/AWT based screens in case of GUI applications.

1) Document what you need to capture & create data structure based on that
2) For GUI application, create screens and use various form elements (text box, list, check box etc). For console apps, question answers would take care of data capture.
3) Once data is captured, fill in the data structure for storage and write it to file

let me know in case u r interested in more details.

2006-11-01 20:51:54 · answer #1 · answered by kvasani 2 · 0 0

Here are the steps:

1. Input data.
2. Save data to file.

If you search Google for "Java tutorials" it might help - it sounds like you don't know how to program at all, so I'm guessing just giving you source code would be meaningless. In other words, learn to program in Java a little, then try again!

Rawlyn.

2006-11-01 20:44:23 · answer #2 · answered by Anonymous · 0 0

like this :

public class Test {
public static void main (String[] args) {

for (int i =0;i System.out.println(s);
}

}
}

On the command line you type Test your sentences > theFilename.txt

Piece of cake.

2006-11-01 20:59:22 · answer #3 · answered by gjmb1960 7 · 0 0

fedest.com, questions and answers