http://Bj83.de

File Access in Java

[...]

import java.io.*;

[...]

   public void writeLinetoFile(String sFilename, String sLine) throws IOException{
	   FileWriter fw = new FileWriter(sFilename);
	   fw.write("Output: \n");
	   fw.append(sLine);
	   fw.flush();
	   fw.close();
   }

[...]

Leave a Reply

Your email address will not be published. Required fields are marked *

Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: