http://download.oracle.com/javase/1.4.2/docs/api/java/io/ObjectInputStream.html#ObjectInputStream%28java.io.InputStream%29

http://www.devmedia.com.br/articles/viewcomp.asp?comp=3050


FileOutputStream arquivoGrav = new
FileOutputStream("/Users/glaucio/Desktop/saida.dat");

            //Classe responsavel por inserir os objetos

            ObjectOutputStream objGravar = new
ObjectOutputStream(arquivoGrav);

            //Grava o objeto cliente no arquivo

            objGravar.writeObject(cliente);


          //Carrega o arquivo

            FileInputStream arquivoLeitura = new
FileInputStreamc:/saida.dat");

            //Classe responsavel por recuperar os objetos do arquivo

            ObjectInputStream objLeitura =

                                        new
ObjectInputStream(arquivoLeitura);



[]'s

-- 
You received this message because you are subscribed to the Google Groups "Comp 
2 - Geral" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/comp2-geral?hl=en.

Responder a