how can we use write and read functions in files and why we use these function because i have already get put or cin cout available.

Recommended Answers

All 2 Replies

cin and cout allow access to standard input(mostly the keyboard) and standard output(mostly the console screen)
Use the other functions for other file manipulations.

Generally speaking read and write are used to read and write binary data in files. Normally that goes hand in hand with serialization.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.