Primer commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package org.palomafp.aadd.tma;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileReader;
|
||||
import java.io.IOException;
|
||||
|
||||
public class appPrincipal {
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
try {
|
||||
BufferedReader bfr = new BufferedReader(new FileReader("C:\\Users\\alumnoT\\aadd\\fic01\\informacion_paises.txt"));
|
||||
String linea;
|
||||
while ((linea = bfr.readLine()) != null) {
|
||||
if (!linea.startsWith("#")) {
|
||||
System.out.println("INSERT INTO T_PAIS VALUES("+linea+");");
|
||||
}
|
||||
}
|
||||
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user