Here you can find the source of dumpToTemporaryFile(String modifiedSource, String modifiedPythonFile)
public static void dumpToTemporaryFile(String modifiedSource, String modifiedPythonFile)
//package com.java2s; //License from project: Open Source License import java.io.File; import java.io.FileWriter; import java.io.IOException; public class Main { public static void dumpToTemporaryFile(String modifiedSource, String modifiedPythonFile) { try {/*from w w w . ja va 2 s . c o m*/ FileWriter writer = new FileWriter(new File(modifiedPythonFile)); writer.write(modifiedSource.toString()); writer.close(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } }