Location: Metabolic Component Library @ 38fe44af096f / CellML-source / CellMLTools / src / tools / CellMLWriter.java
- Author:
- Randall Britten <r.britten@auckland.ac.nz>
- Date:
- 2013-04-17 15:40:27+12:00
- Desc:
- Trivial whitespace changes, and moved import to be adjacent to peer import.
- Permanent Source URI:
- https://models.cellml.org/w/matthiaskoenig/MetabolicComponentLibrary/rawfile/38fe44af096fb53d9b250091fe0563b33b5f778f/CellML-source/CellMLTools/src/tools/CellMLWriter.java
package tools; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import cellml_api.Model; public class CellMLWriter { public static void writeToFile(Model model, String outputFileName ){ try{ PrintWriter writer = new PrintWriter(new FileWriter(outputFileName)); writer.println(model.getSerialisedText()); writer.close(); } catch(IOException e) { e.printStackTrace(); } } }