Location: Metabolic Component Library @ c311fdf9d02b / CellML-source / CellMLTools / src / tools / CellMLWriter.java
- Author:
- Matthias K?nig <matthias.koenig@charite.de>
- Date:
- 2013-04-18 15:57:37+02:00
- Desc:
- Merge Example 2 changes.
- Permanent Source URI:
- https://staging.physiomeproject.org/w/matthiaskoenig/MetabolicComponentLibrary/rawfile/c311fdf9d02beef408c718aab79c82d8531d51ca/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();
}
}
}
