Code example for OutputStreamWriter

Methods: append, flush

0
		osw = new OutputStreamWriter(fos);
	} 
 
	public boolean writeToSdCard(String message) {
		try {   
			osw.append(message+"\n");
			osw.flush();
			return true; 
		} catch(IOException e) {
			Log.e(tag,"exception writeSD" + e.getMessage());
			return false; 
		} 
	} 
 
	public void closeLogger() throws IOException { 
		osw.close();
	} 
 
	public String getFileName () {
		return fileName;
	}