import java.lang.*;
import java.io.*;
import javax.swing.*;
public class Archivo
{
static File file;
static String codigo;
private prueba2 pat;
public Archivo()
{
}
public static void saveString(File file, String s)
throws IOException
{
codigo = jTextPane1.getText();
try
{
PrintWriter fileOut = new PrintWriter(new FileWriter(file));
fileOut.println(codigo);
fileOut.close();
}
catch (IOException ex)
{
throw ex;
}
}
public static void readLines(File file)
throws FileNotFoundException, IOException {
try
{
BufferedReader fileIn = new BufferedReader(
new FileReader(file));
}
catch (FileNotFoundException ex)
{
throw ex;
}
catch (IOException ex)
{
throw ex;
}
}
public static void main(String args[])
{
Archivo obj = new Archivo();
}
}