Location: Metabolic Component Library @ 5bd19a519545 / CellML-source / CellMLTools / src / tools / CellMLWriter.java
- Author:
- Matthias K?nig <matthias.koenig@charite.de>
- Date:
- 2013-05-15 08:27:35+02:00
- Desc:
- Some work on tutorial.
- Permanent Source URI:
- https://staging.physiomeproject.org/w/matthiaskoenig/MetabolicComponentLibrary/rawfile/5bd19a519545f21ae16980a695bf5a1a51627fff/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();
}
}
}
