-
program flow
I am starting off with a small project in which the output from one java program should be the input to another java program and it continues.
First, I am only dealing with text data; later on, I have to develop it into GUI application.
In the java desktop application I have to work with frames.
For the time being, I only need to know how to store the string output from an java application. And then, I can access that string from the second application and so forth.
Thanks,
-
File file = new File(...
Code:
File file_variable = new File("filename.dat");//
FileWriter file_writer = new File(file_variable);
String string_from_program = new String(program_result);//
file_writer.writeString(string_from_program);
file_writer.flush();file_writer.close();
The code is written to state the procedure of doing what you ask, it is not exactly the way easiest done, and is probably technically incorrect.