Good I have a code like this:
String ruta = "archivo.txt";
File archivo = new File(ruta);
String texto;
String[] a;
String pre= "texto a encontrar";
FileReader f = new FileReader(archivo);
FileWriter f1 = new FileWriter(archivo);
BufferedReader b = new BufferedReader(f);
PrintWriter out = new PrintWriter(new BufferedWriter(f1));
while((texto = b.readLine())!=null) {
a = texto.split("==");
String h = a[0];
if (h.equals(pre)){
out.println("");
f1.close();
}
What I want to get to do is, according to a text, be able to eliminate that row without having to delete or overwrite the entire file just the row where that text appears. Thanks and best regards