Jump to content
misteriosa

ficheiros

Recommended Posts

misteriosa

como posso gravar uma pilha stack num ficheiro binario??

alguem me ajuda por favor

obrigada

Share this post


Link to post
Share on other sites
brunoais

Basta usar:

http://docs.oracle.com/javase/7/docs/api/java/io/ObjectOutputStream.html

Ele escreve no output stream de tal maneira que é completamente recuperável. Ele usa a capacidade do Serializable de todos os objetos.


"[Os jovens da actual geração]não lêem porque não envolve um telecomando que dê para mirar e atirar, não falam porque a trapalhice é rainha e o calão é rei" autor: thoga31

Life is a genetically transmitted disease, induced by sex, with death rate of 100%.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.