×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

JAVA example - How to write to a file?


JAVA - How to write to a file?

If the file does not already exist, it is automatically created. 
    try 
    {
         BufferedWriter out = new BufferedWriter(new        FileWriter("outfilename"));
         out.write("aString");
         out.close();
    } 
    catch (IOException e)
    {

    }

Category: JAVA

 
<< Go back