Results 1 to 2 of 2

Thread: program flow

  1. #1
    loktamu is offline Member
    Join Date
    Sep 2008
    Location
    London
    Posts
    5
    Rep Power
    0

    Default 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,

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Default File file = new File(...

    Java 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.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Similar Threads

  1. Executing a program within a program
    By gibsonrocker800 in forum New To Java
    Replies: 5
    Last Post: 05-12-2008, 08:24 AM
  2. Tiles process flow explaination needed...
    By abhishek paul in forum Web Frameworks
    Replies: 0
    Last Post: 04-29-2008, 04:02 PM
  3. Replies: 0
    Last Post: 04-04-2008, 02:40 PM
  4. Replies: 0
    Last Post: 10-04-2007, 09:33 PM
  5. Java + information flow 3.0
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-20-2007, 09:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •