Location: Metabolic Component Library @ 23a6551f6e7c / CellML-source / CellMLTools / src / tools / CellMLWriter.java
- Author:
- Matthias K?nig <matthias.koenig@charite.de>
- Date:
- 2013-04-16 14:07:30+02:00
- Desc:
- CellML Java API source code first commit.
- Permanent Source URI:
- https://staging.physiomeproject.org/w/matthiaskoenig/MetabolicComponentLibrary/rawfile/23a6551f6e7cf5bfe0826c28dd670d1f128b9c7f/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();
}
}
}
