import java.io.*;
public class UArchivo{
private RandomAccessFile miRAFile;
public UArchivo(){
}
public void AbrirArchivo(String path)throws IOException{
miRAFile = new RandomAccessFile(path,"rw");
}
public void CerrarArchivo()throws IOException{
miRAFile.close();
}
public void EscribirLinea(String datos)throws IOException{
String cadena = null;
miRAFile.seek(miRAFile.length());
miRAFile.writeBytes(cadena);
}
public String LeerLinea()throws IOException{
String a=null;
a = miRAFile.readLine();
return a;
}
}