- import java.io.*; 
- import java.util.*; 
- public class Archivos { 
-   public static void main(String []args){ 
-       BufferedReader entrada = new BufferedReader(new InputStreamReader(System.in)); 
-     PrintWriter salida = new PrintWriter(System.out, true); 
-     PrintWriter error = new PrintWriter(System.err, true); 
-     int tabla = 0, limite = 0; 
-     String cadena = ""; 
-   try{ 
-     DataOutputStream dos = new DataOutputStream(new FileOutputStream("C:/Progra/Archivos/tabla.txt")); 
-     salida.print("¿Qué tabla quieres?\t"); 
-     salida.flush(); 
-     tabla = Integer.parseInt(entrada.readLine()); 
-     salida.print("\n¿Hasta donde?\t"); 
-     salida.flush(); 
-     limite = Integer.parseInt(entrada.readLine()); 
-     for(int i = 1; i<=limite; i++){ 
-       cadena =  tabla + " x " + i + " = " + (i*tabla); 
-       dos.writeUTF(cadena); 
-     } 
-   dos.close(); 
-   }catch(IOException ioe){ 
-     salida.print("Error1 "); 
-   } 
- } 
- } 
-