Location: Metabolic Component Library @ aacef38c9d45 / CellML-source / CellMLTools / src / tools / CellMLWriter.java
- Author:
- Matthias K?nig <matthias.koenig@charite.de>
- Date:
- 2013-04-18 17:56:36+02:00
- Desc:
- Example Full 1 working!
- Permanent Source URI:
- https://staging.physiomeproject.org/w/matthiaskoenig/MetabolicComponentLibrary/rawfile/aacef38c9d45dc2ea867141943bc44ef09ac4da7/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();
}
}
}
