Jump to content

Ajuda acerca Leitura Ficheiro TXT

Recommended Posts


Boas, quero ler um ficheiro txt que contém:

A Portugal

B Costa do Marfim

C Brasil

Quero que imprima o seguinte:


Costa do Marfim


Alguém pode dar umas dicas?

Share this post

Link to post
Share on other sites

existem várias funções de leitura de dados de um stream:

- fgets

- fscanf

- fread

IRC : sim, é algo que ainda existe >> #p@p

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.