|
|
@ -0,0 +1,17 @@ |
|
|
|
package jorpelu.com; |
|
|
|
import java.io.*; |
|
|
|
import java.util.Scanner; |
|
|
|
public class main { |
|
|
|
|
|
|
|
public static void main(String[] args) throws IOException { |
|
|
|
File fichero = new File("FichTexto.txt"); |
|
|
|
FileWriter fic = new FileWriter(fichero); |
|
|
|
Scanner sc = new Scanner(System.in); |
|
|
|
String cad = " "; |
|
|
|
do { |
|
|
|
fic.write(cad + "\n"); |
|
|
|
}while((cad=sc.next()).toCharArray()[0] != '\\'); |
|
|
|
fic.close(); |
|
|
|
} |
|
|
|
|
|
|
|
} |