This commit is contained in:
alejandro.melgarejo
2026-09-22 18:08:17 +02:00
commit 4500dbe385
8 changed files with 80 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
/**
*
*/
/**
*
*/
module Ficheros_01 {
}
+32
View File
@@ -0,0 +1,32 @@
package org.palomafp.aadd.AMA;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class Main {
@SuppressWarnings("null")
public static void main(String[] args) {
// TODO Auto-generated method stub
String SinComillas = "";
try {
BufferedReader br = new BufferedReader(new FileReader("C:/Users/alumnoT/aadd/fic01/informacion_paises.txt"));
String Linea = "";
while((Linea = br.readLine()) != null) {
if(Linea.startsWith("#")) {
}else {
SinComillas = Linea.replace('\"', '\'');
System.out.println("INSERT INTO T_CICLO VALUES ("+ SinComillas + ");");
}
}
}catch(IOException ex) {
System.out.println(ex.getMessage());
}
}
}