private void SaveFastaAction(IFqFile fq, String fileName) { saveWorker.ReportProgress(40, "[CREATING FASTA FORMAT]"); String output = fqFile.createFastaFormat(""); saveWorker.ReportProgress(100, "[FASTA FORMAT CREATED]"); StreamWriter writer; try { writer = new StreamWriter(@fileName); writer.Write(output); writer.Flush(); writer.Close(); } catch (IOException exception) { Console.WriteLine(exception.ToString()); UserResponse.ErrorResponse(exception.ToString()); } }