Java programmer and Grid computing people

Hi All
i am a student and new to programming and grid computing. i want to discuss my problems related to the fields with experienced people. anyone related to the fields please respond to my thread. your cooperation will be a grate help to me.

thanx in advance

Replies

  • HImanshu_Sharma
    HImanshu_Sharma
    hey i'm not a gud experienced person but i can sort out some of your prob as i can...so tell....?
  • sanamalik
    sanamalik
    hey thanx for contacting me. actually i am doing a project for which i need your help to do some tasks. now i want to write the output of the program in a seperate file for which i added the following code
    FileOutputStream out; ​
    // declare a file output object

    PrintStream p; ​
    // declare a print stream object


    try

    {
    // Create a new file output stream

    // connected to "myfile.txt"

    out = ​
    new FileOutputStream("myfile.txt");

    // Connect print stream to the output stream

    p = ​
    new PrintStream( out );

    p.println (
    "This is written to a file");

    p.close();
    }
    catch (Exception e)
    {
    System.
    err.println ("Error writing to file");
    }

    }
    catch (Exception e)
    {
    e.printStackTrace();
    System.
    out.println("Unwanted errors happen");
    }
    }
    but it just prints " this is written to a file".
    i want to write the whole result that apperas in console.
    please suggest me the way to do so.

    one thing more, if u don't mind, can i have ur e-mail ID so that i can contact u there?

    regards.

  • sanamalik
    sanamalik
    hey thanx for contacting me. actually i am doing a project for which i need your help to do some tasks. now i want to write the output of the program in a seperate file for which i added the following code

    FileOutputStream out; ​
    // declare a file output object


    PrintStream p; ​
    // declare a print stream object



    try


    {
    // Create a new file output stream


    // connected to "myfile.txt"


    out = ​
    new FileOutputStream("myfile.txt");

    // Connect print stream to the output stream


    p = ​
    new PrintStream( out );

    p.println (
    "This is written to a file");

    p.close();
    }
    catch (Exception e)
    {
    System.
    err.println ("Error writing to file");
    }

    }
    catch (Exception e)
    {
    e.printStackTrace();
    System.
    out.println("Unwanted errors happen");
    }
    }
    but it just prints " this is written to a file".
    i want to write the whole result that apperas in console.
    please suggest me the way to do so.

    one thing more, if u don't mind, can i have ur e-mail ID so that i can contact u there?

    regards.

You are reading an archived discussion.

Related Posts

Post ur comments on windows here... do share everything with us
hi... can any one help how to do miniproject and watvis meant by mini project and how to select the topic for that....pls...
I'm thinking about bringing together CEans who've gotten offers from the major IT recruiters. Infosys is definitely one of them. I think it would be interesting to meet people whom...
I'm wondering how many engineering students really care about what kind of job they'll do once they join the company. I think you should! For example, if someone's offered a...
Those who are looking for jobs, head over to : Persistent : Careers : Vacancies and submit your resume if you think you qualify for the required positions. All the...