elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Estamos en la red social de Mastodon


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  Java
| | | |-+  Ayuda con un ejercicio. Grabar datos en un fichero secuencial de texto.
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Ayuda con un ejercicio. Grabar datos en un fichero secuencial de texto.  (Leído 6,209 veces)
Droigor

Desconectado Desconectado

Mensajes: 8



Ver Perfil
Ayuda con un ejercicio. Grabar datos en un fichero secuencial de texto.
« en: 10 Marzo 2014, 11:44 am »

Lo primero un saludo. Soy nuevo en estos foros y nuevo también en la poo :)
De ahí el lio tremendo que tengo con un ejercicio de clase que nos han mandado.

 Pego el enunciado y comento cual es el problema.

Se trata de hacer una aplicación en Java que gestione los clientes de una empresa. Esos datos, se almacenarán en un fichero serializado, denominado clientes.dat.

Los datos que se almacenarán sobre cada cliente son:

    NIF.
    Nombre.
    Teléfono.
    Dirección.
    Deuda.

Mediante un menú se podrán realizar determinadas operaciones:

    Añadir cliente. Esta opción pedirá los datos del cliente y añadirá el registro correspondiente en el fichero.
    Listar clientes. Recorrerá el fichero mostrando los clientes almacenados en el mismo.
    Buscar clientes. Pedirá al usuario el nif del cliente a buscar, y comprobará si existe en el fichero.
    Borrar cliente. Pedirá al usuario el nif del cliente a borrar, y si existe, lo borrará del fichero.
    Borrar fichero de clientes completamente. Elimina del disco el fichero clientes.dat
    Salir de la aplicación.


Bueno, pues el problema es que tras clear la clase y el main, no me añade ninguna linea al fichero clientes.dat, con lo que me he quedado superatascado en el apartado 1 y no puedo seguir.

Pego los códigos y a ver que me podeis decir. Muchisimas gracias de antemanos.


Clase principal:

Código
  1. package tarea6;
  2.  
  3. /**
  4.  *
  5.  * @author adec29
  6.  */
  7. public class Tarea6 implements java.io.Serializable {
  8.    //Se implementa la interfaz serializable para que el objeto Cliente pueda
  9.    //escribir todos sus datos en fichero.
  10.  
  11.  
  12.    static ManejaClientes cliente;
  13.  
  14.    /**
  15.      * @param args the command line arguments
  16.      * @throws java.lang.Exception
  17.      */
  18.    public static void main(String[] args) throws Exception {
  19.       /**
  20.         * Creo un cliente por defecto. No se añade al archivo.
  21.         */
  22.        String nombred = "John Doe";
  23.        String nifd = "123456789K";
  24.        String tlfd = "924123456";
  25.        String dird = "13 rue del Percebe";
  26.        String deudad = "2500";
  27.        String ruta = "/home/droigor/Documentos/DAM/PROG - Programación/Unidad 6/Tarea/clientes.dat";
  28.  
  29.        cliente = new ManejaClientes(nombred, nifd, tlfd, dird, deudad);
  30.        /**
  31.          * Menú
  32.          * Presenta el menú de operaciones con todas las opciones disponibles
  33.          */
  34.        int opcion = 0;
  35.        do{
  36.            try{
  37.                opcion = Integer.parseInt(cliente.Menu()); // Mostramos el menu
  38.                }
  39.            catch (NumberFormatException nfe){
  40.                System.err.println("Sólo valores entre 0 y 6");
  41.                opcion = 10;
  42.            }
  43.        switch (opcion){
  44.        case 0://Salir del menú
  45.        break;
  46.  
  47.        case 1://Añadir cliente
  48.  
  49.        //Se crea un nuevo objeto (cliente) de la clase ManejaClientes
  50.        String nombre = ManejaClientes.setNombre();
  51.        String nif = ManejaClientes.setNif();
  52.        String tlf = ManejaClientes.setTlf();
  53.        String dir = ManejaClientes.setDireccion();
  54.        String deuda = ManejaClientes.setDeuda();
  55.        // Se invoca al constructor de la clase para que nos guarde un objeto c
  56.        // con los datos recién introducidos
  57.        ManejaClientes c = new ManejaClientes(nombre, nif, tlf, dir, deuda);
  58.        //Añadimos el nuevo cliente al fichero clientes.dat invocando el método EscribeFichero()
  59.        ManejaClientes.EscribeFichero(ruta, c.getNombre(), c.getNif(), c.getDireccion(), c.getTlf(), c.getDeuda());
  60.        break;
  61.  
  62.        case 2://Listar clientes
  63.        break;
  64.  
  65.        case 3://Buscar clientes
  66.        break;
  67.  
  68.        case 4://Borrar cliente
  69.        break;
  70.  
  71.        case 5://Borrar fichero de clientes. Ojo que no hay vuelta atrás.
  72.        break;
  73.  
  74.        default:
  75.        System.out.println("Introduzca un valor entre 0 y 6");
  76.      }
  77.  
  78.  
  79.        }while (opcion !=0);
  80.    }
  81. }





Y la clase con sus constructores y métodos.

Código
  1. package tarea6;
  2.  
  3. import java.io.BufferedReader;
  4. import java.io.File;
  5. import java.io.FileNotFoundException;
  6. import java.io.FileReader;
  7. import java.io.FileWriter;
  8. import java.io.IOException;
  9. import java.io.PrintWriter;
  10. import java.util.Scanner;
  11.  
  12. /**
  13.  *
  14.  * @author droigor
  15.  */
  16. public class ManejaClientes implements java.io.Serializable {
  17.    //Habilitamos la entrada de datos por teclado
  18.    static Scanner teclado=new Scanner(System.in);
  19.  
  20.    //Atriutos
  21.    private String nif; //Nif del cliente
  22.    private String nombre; //Nombre del cliente
  23.    private String telefono; // Teléfono del cliente
  24.    private String direccion; // Dirección del cliente
  25.    private String deuda; //Deuda del dliente
  26.    private static boolean check;
  27.  
  28.    /**
  29.      * Constructor de la clase
  30.      * Los datos son comprobados dentro del método que los crea
  31.      * @param nombre
  32.      * @param nif
  33.      * @param telefono
  34.      * @param direccion
  35.      * @param deuda
  36.      * @throws Exception
  37.      */
  38.  
  39.    public ManejaClientes(String nombre, String nif, String telefono,
  40.                          String direccion, String deuda) throws Exception {
  41.      ManejaClientes.check = false;
  42.      this.nombre = nombre;
  43.      this.nif = nif;
  44.      this.telefono = telefono;
  45.      this.direccion = direccion;
  46.      this.deuda = deuda;
  47.  }
  48.  
  49. // Métodos set y get
  50.  
  51.     /**
  52.      * setNombre()
  53.      * @return nombre
  54.      * Nos permite establecer el nombre del cliente. Verifica que el nombre
  55.      * introducido es correcto siempre y cuando la longitud del String nombre
  56.      * se halle entre 3 y 40 caracteres.
  57.      */
  58.    public static String setNombre(){
  59.        String nombre = "x";
  60.        do{
  61.            System.out.println("Introduce el nombre del cliente (3-40 caracteres):");
  62.            nombre = teclado.nextLine();
  63.            if ((nombre.length() < 3) || (nombre.length() > 40))
  64.                System.out.println("El nombre debe tener entre 3 y 40 caracteres");
  65.            }
  66.        while ((nombre.length() < 3) || (nombre.length() > 40));
  67.        return nombre;
  68.        }
  69.  
  70.     /**
  71.      * setNif()
  72.      * @return nif
  73.      * Nos permite establecer el nif del cliente. Voy a dar por correcto una
  74.      * cadena de 9 caracteres
  75.      */
  76.    public static String setNif(){
  77.        String nif = "x";
  78.        do{
  79.            System.out.println("Introduce el nif del cliente (9 caracteres):");
  80.            nif = teclado.nextLine();
  81.            if ((nif.length() < 9) || (nif.length() > 9))
  82.                System.out.println("El nif debe tener 9 caracteres");
  83.            }
  84.        while ((nif.length() < 9) || (nif.length() > 9));
  85.        return nif;
  86.        }
  87.  
  88.    /**
  89.      * setTlf()
  90.      * @return tlf
  91.      * Nos permite establecer el teléfono del cliente. Voy a dar por correcto una
  92.      * cadena de 9 caracteres
  93.      */
  94.    public static String setTlf(){
  95.        String tlf = "x";
  96.        do{
  97.            System.out.println("Introduce el teléfono del cliente (9 caracteres):");
  98.            tlf = teclado.nextLine();
  99.            if ((tlf.length() < 9) || (tlf.length() > 9))
  100.                System.out.println("El teléfono debe tener 9 caracteres");
  101.            }
  102.        while ((tlf.length() < 9) || (tlf.length() > 9));
  103.        return tlf;
  104.        }
  105.  
  106.         /**
  107.      * setDireccion()
  108.      * @return dir
  109.      * Nos permite establecer la dirección del cliente. Asume que la dirección
  110.      * introducida es correcta siempre y cuando la longitud del String dir
  111.      * se halle entre 3 y 40 caracteres.
  112.      */
  113.    public static String setDireccion(){
  114.        String dir = "x";
  115.        do{
  116.            System.out.println("Introduce la dirección cliente (10-50 caracteres):");
  117.            dir = teclado.nextLine();
  118.            if ((dir.length() < 3) || (dir.length() > 40))
  119.                System.out.println("El nombre debe tener entre 10 y 50 caracteres");
  120.            }
  121.        while ((dir.length() < 10) || (dir.length() > 50));
  122.        return dir;
  123.        }
  124.  
  125.    /**
  126.      * setDeuda
  127.      * Nos permite establecer la cantidad que debe el cliente
  128.      * @return deuda
  129.      */
  130.    public static String setDeuda() {
  131.    String deuda;
  132.    System.out.println("Indique la cantidad adeudada por el cliente: ");
  133.    deuda = teclado.next();
  134.    return deuda;
  135.  
  136.  }
  137.  
  138.    /**
  139.      * getNif
  140.      * Nos devuelve el nif del cliente
  141.      * @return nif
  142.      */
  143.    public String getNif() {
  144.        return nif;
  145.    }
  146.  
  147.    /**
  148.      * getNombre
  149.      * Nos devuelve el nombre del cliente
  150.      * @return nombre
  151.      */
  152.    public String getNombre() {
  153.        return nombre;
  154.    }
  155.  
  156.    /**
  157.      * getTlf
  158.      * Nos devuelve el teléfono del cliente
  159.      * @return teléfono
  160.      */
  161.    public String getTlf() {
  162.        return telefono;
  163.    }
  164.  
  165.    /**
  166.      * getDireccion
  167.      * Nos devuelve la dirección del cliente
  168.      * @return direccion
  169.      */
  170.    public String getDireccion() {
  171.        return direccion;
  172.    }
  173.  
  174.    /**
  175.      * getDeuda
  176.      * Nos devuelve la deuda que tiene el cliente
  177.      * @return deuda
  178.      */
  179.    public String getDeuda() {
  180.        return deuda;
  181.    }
  182.  
  183.    /**
  184.      * menu()
  185.      * Menú de selección. Presenta el menú de opciones
  186.      * @return opcion
  187.      */
  188.    public String Menu(){
  189.    System.out.println("Menú");
  190.    System.out.println("-------------------------------");
  191.    System.out.println("1 - Añadir cliente");
  192.    System.out.println("2 - Listar clientes");
  193.    System.out.println("3 - Buscar cliente");
  194.    System.out.println("4 - Borrar cliente");
  195.    System.out.println("5 - Borrar fichero clientes.dat");
  196.    System.out.println("0 - Salir");
  197.    System.out.println("-------------------------------");
  198.    String opcion = teclado.next();
  199.    return opcion;
  200.  }
  201.  
  202.    /**
  203.      * escribeFichero()
  204.      * Nos permite escribir datos en el fichero clientes.dat
  205.      * @param ruta - La ruta del fichero
  206.      * @param nombre
  207.      * @param nif
  208.      * @param telefono
  209.      */
  210.    public static void EscribeFichero(String ruta, String nombre, String nif, String telefono,
  211.                          String direccion, String deuda){
  212.        //Inicializamos los objetos fichero y registro que usaremos más adelante
  213.        // para crear un fichero o añadirle datos  en la ruta definida en los
  214.        // atributos de la clase
  215.         FileWriter fichero;
  216.         PrintWriter registro;
  217.  
  218.         try{
  219.             //Creo un ofjeto fichero. El true detrás de ruta es para poder añadir
  220.             //contenido al fichero si existe, si no existe se crea.
  221.            fichero = new FileWriter(ruta, true);
  222.            registro = new PrintWriter(fichero);
  223.            registro.println();
  224.  
  225.             } catch (IOException e) {
  226.             System.out.println("Error de entrada/salida."+e);
  227.  
  228.             }catch (Exception ex){//Es la excepción más general y se refiere a cualquier error de entrada y salida
  229.             System.out.println("Error genérico"+ex);
  230.             }
  231.    }
  232.  
  233.    /**
  234.      * LeerFichero()
  235.      * Nos permite leer del fichero clientes.dat
  236.      * @param ruta
  237.      * @return
  238.      * @throws FileNotFoundException
  239.      */
  240.    public static String LeerFichero (String ruta) throws FileNotFoundException{
  241.        try{
  242.            File fichero;
  243.            FileReader registro;
  244.            //Creo el objeto del archivo a leer
  245.            fichero=new File(ruta);
  246.            //Creo un objeto FileReader que abrirá el flujo de datos a leer
  247.            registro=new FileReader(fichero);
  248.            //Creo un lector en buffer para recopilar los datos de registro
  249.            BufferedReader br= new BufferedReader(registro);
  250.            //Creo una variable lectura que usaré más adelante para almacenar
  251.            //la lectura del archivo y una variable de comprobación
  252.            String lectura="";
  253.            String check=" ";
  254.            //Con este while leemos el archivo linea a linea hasta que se acaba
  255.            // el fichero. Si la variable check tiene datos, se acumulan en la
  256.            //variable lectura. Si check es nula ya se ha leido todo el archivo
  257.            while (true){
  258.                check = br.readLine();
  259.                if (check != null) lectura=lectura+check+"n";
  260.                else
  261.                break;
  262.        }
  263.            br.close();
  264.            registro.close();
  265.            return lectura;
  266.        }
  267.            catch (IOException e){
  268.                    System.out.println("Error:"+e.getMessage());
  269.                    }
  270.            return null;
  271.  
  272.        }
  273.  
  274.  
  275.  
  276.    }

Bueno, pues aquí está.
Un saludo a todos.
Rodri.



« Última modificación: 22 Marzo 2014, 21:29 pm por Debci » En línea

Se bueno, ten un buen día.
Droigor

Desconectado Desconectado

Mensajes: 8



Ver Perfil
Re: Ayuda con un ejercicio. Grabar datos en un fichero secuencial de texto.
« Respuesta #1 en: 10 Marzo 2014, 14:56 pm »

Perdón por haber colocado esto aquí. No se como moverlo al foro de ejercicios.

Un saludo.


En línea

Se bueno, ten un buen día.
Mitsug

Desconectado Desconectado

Mensajes: 16



Ver Perfil
Re: Ayuda con un ejercicio. Grabar datos en un fichero secuencial de texto.
« Respuesta #2 en: 10 Marzo 2014, 15:33 pm »

1] Estás usando archivos de texto plano como un simulador de base de datos. Los datos son: NIF, Nombre, Teléfono, Dirección y Deuda. En el archivo en donde guardaremos los datos de los clientes, tenemos que tener un separador, esto nos servirá para distinguir los datos dentro del archivo plano y para luego obtener los datos precisos dividiendo la fila por medio del separador y así obtener los tokens precisos de los datos.

Ej.: 32322|Augusto|4139292|Av. Insurgentes #607|25040.40

2] Para actualizar los datos, no estoy muy seguro, te toca googlear.

Primero creamos un POJO:

Código
  1. public class Cliente {
  2.  
  3.    private String nif;
  4.    private String nombre;
  5.    private long telefono;
  6.    private String direccion;
  7.    private Double deuda;
  8.  
  9.    public Cliente() {
  10.  
  11.    }
  12.  
  13.    public Cliente(String nif, String nombre, long telefono, String direccion, Double deuda) {
  14.        this.nif = nif;
  15.        this.nombre = nombre;
  16.        this.telefono = telefono;
  17.        this.direccion = direccion;
  18.        this.deuda = deuda;
  19.    }
  20.  
  21.    public String getNif() {
  22.        return nif;
  23.    }
  24.  
  25.    public void setNif(String nif) {
  26.        this.nif = nif;
  27.    }
  28.  
  29.    public String getNombre() {
  30.        return nombre;
  31.    }
  32.  
  33.    public void setNombre(String nombre) {
  34.        this.nombre = nombre;
  35.    }
  36.  
  37.    public long getTelefono() {
  38.        return telefono;
  39.    }
  40.  
  41.    public void setTelefono(long telefono) {
  42.        this.telefono = telefono;
  43.    }
  44.  
  45.    public String getDireccion() {
  46.        return direccion;
  47.    }
  48.  
  49.    public void setDireccion(String direccion) {
  50.        this.direccion = direccion;
  51.    }
  52.  
  53.    public Double getDeuda() {
  54.        return deuda;
  55.    }
  56.  
  57.    public void setDeuda(Double deuda) {
  58.        this.deuda = deuda;
  59.    }
  60.  
  61.  
  62. }
  63.  

Snippets:

Escribir los datos en un fichero:
Código
  1. public static void escribirArchivo(String ruta, Cliente cliente) {
  2.  
  3. File archivo = new File(ruta);
  4. BufferedWriter escritor = null;
  5.               String nif = cliente.getNif();
  6.               String nombre = cliente.getNombre();
  7.               long telefono = cliente.getTelefono();
  8.               String direccion = cliente.getDireccion();
  9.               double deuda = cliente.getDeuda();
  10.  
  11. try {
  12. escritor = new BufferedWriter(new FileWriter(archivo));
  13.                              escritor.write(nif+"|"+nombre+"|"+telefono+"|"+direccion+"|"+deuda);
  14.                              escritor.flush();
  15.               }
  16.               catch(IOException e) {
  17.  
  18.               }
  19.               finally { try {
  20.                             escritor.close();
  21.                           } catch (IOException ex) {
  22.              }
  23. }
  24.  

Leer archivo:
Código
  1. public static void leerArchivo(File archivo) {
  2.  
  3.        if(archivo.exists()) {
  4.            String linea = null;
  5.            try {
  6.                lector = new BufferedReader(new FileReader(archivo));        
  7.                while( (linea = lector.readLine()) != null) {
  8.                    String[] datos = linea.split("\\|");
  9.  
  10.                    System.out.println("NIF:\t"+datos[0]);
  11.                    System.out.println("Nombre:\t"+datos[1]);
  12.                    System.out.println("Tel&#233;fono:\t"+datos[2]);
  13.                    System.out.println("Direcci&#243;n:\t"+datos[3]);
  14.                    System.out.println("Deuda:\t"+datos[4]);
  15.                }
  16.            } catch(IOException | NullPointerException ex) {
  17.                ex.printStackTrace();
  18.            } finally {
  19.                cerrarFlujos();
  20.                nullizarFlujos();
  21.            }
  22.        }
  23.        else {
  24.            System.err.println("El archivo no existe.");
  25.        }
  26.    }
  27.  

Ya tienes una idea de cómo hacer el resto. Te sugiero que investigues.

Aquí te comparto el source(Proyecto se llama Clientes): https://www.dropbox.com/sh/23mqxxoqaysfi36/4_yCK-hlQn
« Última modificación: 10 Marzo 2014, 16:43 pm por Mitsug » En línea

Droigor

Desconectado Desconectado

Mensajes: 8



Ver Perfil
Re: Ayuda con un ejercicio. Grabar datos en un fichero secuencial de texto.
« Respuesta #3 en: 11 Marzo 2014, 10:19 am »

Muchas gracias.

Me pongo a ello ahora mismo, a ver que tal.

Un saludo.
En línea

Se bueno, ten un buen día.
mgc

Desconectado Desconectado

Mensajes: 30


Ver Perfil
Re: Ayuda con un ejercicio. Grabar datos en un fichero secuencial de texto.
« Respuesta #4 en: 19 Marzo 2014, 16:40 pm »

¿Y como se buscarían los clientes en este caso?

 :huh:
En línea

Mitsu

Desconectado Desconectado

Mensajes: 259



Ver Perfil WWW
Re: Ayuda con un ejercicio. Grabar datos en un fichero secuencial de texto.
« Respuesta #5 en: 19 Marzo 2014, 17:17 pm »

En SOF dicen que tienes que abrir el fichero en 'modo anexado'. Esto se con el constructor de FileWriter:

Código
  1. FileWriter(File archivo, boolean anexado)

UPDATE

Aquí les dejo la clase utilitaria por si le es de utilidad al autor del post o a alguien más. Permite agregar un nuevo cliente, buscar un cliente por NIF y obtener todos los clientes.

Código
  1. package pe.edu.unp.util;
  2.  
  3. import java.io.BufferedReader;
  4. import java.io.BufferedWriter;
  5. import java.io.File;
  6. import java.io.FileNotFoundException;
  7. import java.io.FileReader;
  8. import java.io.FileWriter;
  9. import java.io.IOException;
  10. import java.math.BigDecimal;
  11. import java.util.ArrayList;
  12. import java.util.List;
  13.  
  14. import pe.edu.unp.beans.Cliente;
  15.  
  16. public class FileUtil {
  17.  
  18. public static boolean agregarCliente(String ruta, Cliente cliente) throws IOException, FileNotFoundException {
  19. File archivo = null;
  20. BufferedWriter escritor = null;
  21. boolean exito = false;
  22. String nif = null;
  23. String nombre = null;
  24. BigDecimal deuda = null;
  25.  
  26. try {
  27. archivo = new File(ruta);
  28. escritor = new BufferedWriter(new FileWriter(archivo.getAbsolutePath(), true));
  29. // recupera los nuevos datos
  30. nif = cliente.getNif();
  31. nombre = cliente.getNombre();
  32. deuda = cliente.getDeuda();
  33. escritor.write(nif+"|"+nombre+"|"+deuda.toString());
  34. escritor.flush(); // limpia el flujo
  35. exito = true;
  36. } catch (IOException ex) {
  37. throw ex;
  38. } finally {if(escritor != null) escritor.close();} // cierra el flujo
  39.  
  40. return exito;
  41.  
  42. }
  43.  
  44. public static Cliente buscarClientePorNif(String nif, String ruta) throws IOException {
  45. File archivo = null;
  46. BufferedReader lector = null;
  47. Cliente clienteEncontrado = null;
  48. boolean encontrado = false;
  49.  
  50. try {
  51. archivo = new File(ruta);
  52. lector = new BufferedReader(new FileReader(archivo));
  53. String linea = null;
  54. while( (linea = lector.readLine()) != null) {
  55. String[] datos = linea.split("\\|"); // tokeniza la linea
  56. if(nif.equals(datos[0]) ) {// si el nif dado coincide con el cliente actual
  57. BigDecimal deuda = BigDecimal.valueOf(Double.valueOf(datos[2]));
  58. clienteEncontrado = new Cliente(datos[0],datos[1],deuda);
  59. encontrado = true; // cliente fue encontrado
  60. }
  61. }
  62. } catch (IOException ex) {
  63. throw ex;
  64. } finally { if(lector != null) lector.close(); /* cierra el flujo*/ }
  65.  
  66. if(encontrado) return clienteEncontrado;
  67. else return null;
  68.  
  69. }
  70.  
  71. public static List<Cliente> obtenerAllClientes(String ruta) throws IOException {
  72. List<Cliente> lista = new ArrayList<>();
  73.  
  74. File archivo = null;
  75. BufferedReader lector = null;
  76.  
  77. try {
  78. archivo = new File(ruta);
  79. lector = new BufferedReader(new FileReader(archivo));
  80. String linea = null;
  81. while( (linea = lector.readLine()) != null) {
  82. String[] datos = linea.split("\\|"); // tokeniza la linea
  83. BigDecimal deuda = BigDecimal.valueOf(Double.valueOf(datos[2]));
  84. lista.add(new Cliente(datos[0],datos[1],deuda));
  85. }
  86. } catch (IOException ex) {
  87. throw ex;
  88. } finally { if(lector != null) lector.close(); /* cierra el flujo*/ }
  89.  
  90. if(lista.isEmpty()) return null;
  91. else return lista;
  92.  
  93. }
  94.  
  95. }
« Última modificación: 19 Marzo 2014, 19:30 pm por Mitsu » En línea

Droigor

Desconectado Desconectado

Mensajes: 8



Ver Perfil
Re: Ayuda con un ejercicio. Grabar datos en un fichero secuencial de texto.
« Respuesta #6 en: 21 Marzo 2014, 21:04 pm »

Ejercicio resuelto.

Muchas gracias.

He puesto los códigos en este otro post.

http://foro.elhacker.net/ejercicios/ejercicio_resuelto_gracias_por_la_ayuda-t411089.0.html
En línea

Se bueno, ten un buen día.
Debci
Wiki

Desconectado Desconectado

Mensajes: 2.021


Actualizate o muere!


Ver Perfil WWW
Ayuda con un ejercicio. Grabar datos en un fichero secuencial de texto.
« Respuesta #7 en: 22 Marzo 2014, 21:31 pm »

El mensaje 'Ayuda con un ejercicio. Grabar datos en un fichero secuencial de texto.' fue bloqueado
Considero quela temática ha sido completamente explotada. Para evitar spam, flood y demás cierro el post. Si crees que debería dejarlo abierto, tan solo tienes que decirmelo :) Gracias por tu contribución!
Leer reglas:
http://foro.elhacker.net/reglas
En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Ayuda con ejercicio de organizacion de datos
Java
DANISQUI 1 2,179 Último mensaje 25 Marzo 2012, 16:10 pm
por Proteus1989
Crear fichero archivo de texto en ejercicio.
Programación C/C++
BKsiragon 4 2,596 Último mensaje 28 Enero 2014, 04:41 am
por nolasco281
Ayuda para crear un fichero con datos en float
Programación C/C++
ZeroMiku 0 1,353 Último mensaje 17 Febrero 2016, 00:21 am
por ZeroMiku
Fichero secuencial binario
Programación C/C++
DevMind89 1 1,728 Último mensaje 21 Agosto 2017, 15:19 pm
por Serapis
Error al recuperar datos de fichero de texto con delimitadores
Programación C/C++
DarAlan 6 2,439 Último mensaje 24 Enero 2019, 01:35 am
por alpachino98
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines