Jumat, 07 Oktober 2016

What are file pointer manipulations in C++

Every file will contain two pointers: a read pointer or also known as a get pointer and a write pointer also known as a put pointer. The read pointer or a get pointer is used to read data and the write pointer or put pointer is used to write data to a file. These pointers can be manipulated using the functions from stream classes. Those functions are as follows: The seekg() and seekp() functions specified above can be used to move the pointers in the file for random access. The syntax of these functions is as follows: seekg(int offset, reference_position)

The post What are file pointer manipulations in C++ appeared first on Coding Security.


What are file pointer manipulations in C++
read more

Tidak ada komentar:

Posting Komentar