Java Dump File dumpToTemporaryFile(String modifiedSource, String modifiedPythonFile)

Here you can find the source of dumpToTemporaryFile(String modifiedSource, String modifiedPythonFile)

Description

dump To Temporary File

License

Open Source License

Declaration

public static void dumpToTemporaryFile(String modifiedSource,
            String modifiedPythonFile) 

Method Source Code

//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();
        }
    }
}

Related

  1. dumpFile(String filename)
  2. dumpToFile(String dest, String content)
  3. dumpToFile(String fileName, String buffer, boolean append)
  4. dumpToFile(String name, String string)
  5. dumptoTempFile(List lineItems)