@@ -0,0 +1,626 @@
+package com.dw.yacc;%0A%0Aimport java.io.File;%0Aimport java.io.IOException;%0A%0Apublic class OpenFile %7B%0A%09public File temp;%0A%09%0A%09public OpenFile() %7B%0A%09%09try %7B%0A%09%09%09temp = File.createTempFile(%22temp%22,%22.txt%22);%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09// TODO Auto-generated catch block%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%09%0A%09public static void create_file_name() %7B%0A%09%09%0A%09%7D%0A%09%0A%09public void OpenTempFile() %7B%0A%09%09try %7B%0A%09%09%09temp = File.createTempFile(%22temp%22,%22.txt%22);%0A%09%09%09%0A%09%09%09//cleaning when program exit%0A%09%09%09%0A%09%09%09%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09// TODO Auto-generated catch block%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%09%0A%09public void closeTempFile() %7B%0A%09%09temp.deleteOnExit();%0A%09%7D%0A%7D%0A

add open file for yacc source code