Skip to Main Content
Programming and Data Structures
book

Programming and Data Structures

by Ashok Kamthane
August 2009
Intermediate to advanced content levelIntermediate to advanced
604 pages
21h 39m
English
Pearson India
Content preview from Programming and Data Structures
426 Programming and Data Structures
Q u m m
Contents read: Help me.
Write data & to stop pressI am in trouble.
Explanation In the above example file is opened in read and write mode ( r +). The ge tc () function
reads the contents of file which is printed through p rin tf () function. The getche () function reads
character from the keyboard and the read characters are written to file using f putc () function.
B Binary M odes
1. wb (w rite) This mode opens a binary file in write mode.
Example
fp= fopen ( "d a ta . d a t" , " wb") ;
Here, d ata. dat file is opened in binary mode for writing.
2. rb (read) This mode opens a binary file in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Data Structures and Algorithms

Learning Data Structures and Algorithms

Rod Stephens
Data Structures and Algorithms in C++, Second Edition

Data Structures and Algorithms in C++, Second Edition

Michael T. Goodrich, Roberto Tamassia, David M. Mount

Publisher Resources

ISBN: 9789332506343