Click here to Skip to main content
15,921,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm a newbie please help...i am working on a program that should read a binary file, read the details in the file and display them on the screen. I'm using Ubuntu
Posted

I'm puzzled. Ubuntu or cmd?

Anyway, you may open a file using fopen(), read using fread(), close using fclose(). These are portable (will work both on Linux and on Windows).

Here are some links ('streams' are files):

http://www.gnu.org/software/libc/manual/html_node/Opening-Streams.html[^]

http://www.gnu.org/software/libc/manual/html_node/Block-Input_002fOutput.html#Block-Input_002fOutput[^]

http://www.gnu.org/software/libc/manual/html_node/Closing-Streams.html#Closing-Streams[^]

Welcome to C++,

Pablo.
 
Share this answer
 
here is a tutorial it may help you.

http://www.cppforschool.com/tutorial/Files1.html[^]

if you have any problem while programming then you should ask here. we feel happy to help you.

These kind of tutorials are readily available on many sites.
Thanks...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900