Location: Metabolic Component Library @ e0e2c28e2dfd / CellML-source / CellMLTools / src / tools / CellMLWriter.java
- Author:
- Tommy Yu <tommy.yu@auckland.ac.nz>
- Date:
- 2015-02-12 19:28:32+13:00
- Desc:
- Merging to remove the extra head - Since the title is changed and in the interest of maintaining the current structure we keep it as is.
- Permanent Source URI:
- https://staging.physiomeproject.org/w/matthiaskoenig/MetabolicComponentLibrary/rawfile/e0e2c28e2dfdfe37ea2cae3390a6ae26c28a3393/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();
}
}
}
