FileOutputStream tmpOutputStream = new FileOutputStream(fname);
FileOutputStream tmpOutputStream = new FileOutputStream(JFritz.SAVE_DIR+fname);
	public static void logToFile(String fname) {		Debug.debugLevel = 3;		logFile = true;		//Save the original outputstream so we can write to the console too!		originalOut = System.out;				try {			//setup the redirection of Sysem.out and System.err			FileOutputStream tmpOutputStream = new FileOutputStream(fname);			fileRedirecter = new PrintStream(tmpOutputStream);			System.setOut(fileRedirecter);			System.setErr(fileRedirecter); 		}		catch (Exception e) {			System.out.println("EXCEPTION when writing to LOGFILE"); //$NON-NLS-1$		} 					fileRedirecter.println("------------------------------------------"); //$NON-NLS-1$		msg("logging to file \""+ fname + "\" has been enabled"); //$NON-NLS-1$,  //$NON-NLS-2$	}