Links para Exemplos em "C" e C++
C++
- http://www.cplusplus.com/doc/tutorial/files/
- Funções em C++:
"C"
- http://www.csc.villanova.edu/~mdamian/C/c-files.htm
- https://www.tutorialspoint.com/cprogramming/c_file_io.htm
- Funções em "C": https://en.wikipedia.org/wiki/C_file_input/output
Se eu não vou usar os operadores de stream << e >> em C++, o que eu olho?
Veja as seguintes funções, que é importante você dominar, em especial read, write, seekp e seekg:
Public member functions inherited from istream
- operator>>
- Extract formatted input (public member function )
- gcount
- Get character count (public member function )
- get
- Get characters (public member function )
- getline
- Get line (public member function )
- ignore
- Extract and discard characters (public member function )
- peek
- Peek next character (public member function )
- read
- Read block of data (public member function )
- readsome
- Read data available in buffer (public member function )
- putback
- Put character back (public member function )
- unget
- Unget character (public member function )
- tellg
- Get position in input sequence (public member function )
- seekg
- Set position in input sequence (public member function )
- sync
- Synchronize input buffer (public member function )
Public member functions inherited fromostream
- operator<<
- Insert formatted output (public member function )
- put
- Put character (public member function )
- write
- Write block of data (public member function )
- tellp
- Get position in output sequence (public member function )
- seekp
- Set position in output sequence (public member function )
- flush
- Flush output stream buffer (public member function )
Última atualização: quarta-feira, 24 mai. 2017, 05:35