Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. import com.sun.javafx.image.IntPixelGetter;
  2. import com.sun.org.apache.xerces.internal.xs.StringList;
  3.  
  4. import java.io.File;
  5. import java.io.FileNotFoundException;
  6. import java.io.FileWriter;
  7. import java.io.PrintWriter;
  8. import java.util.ArrayList;
  9. import java.util.LinkedList;
  10.  
  11. import static java.awt.SystemColor.text;
  12.  
  13. /**
  14. * Created by
  15. */
  16. public class MainClass {
  17. static final String FILE_1 = "Log.txt";
  18. private static String txt1;
  19.  
  20. public static void creatFile(String name, Form1 text){
  21. try{
  22. PrintWriter pw = new PrintWriter(".\\log.txt");
  23. pw.write(String.valueOf(text));
  24. pw.flush();
  25. pw.close();
  26. }catch (FileNotFoundException e){
  27. e.printStackTrace();
  28. }
  29. }
  30.  
  31. public static void main(String[] args) throws FileNotFoundException {
  32. Form1 ww = new Form1();
  33.  
  34.  
  35.  
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement