Which file stream is required for seekg() ?
Answers
Answered by
1
ofstream: It represents output Stream and this is used for writing in files. .... seekg() - It moves get pointer(input) to a specified location.
Answered by
1
Seekg() is an operation in the iostreatm library in C++ programming language.
It allows the users to search an arbitrary location in a file.
In file handling, there are two syntax for seekg(): the first one is streampos position while the second is streamoff offset.
Ofstrem is used for writing in files and it can be used as a file stream required for seekg().
Answered by
1
Seekg() is an operation in the iostreatm library in C++ programming language.
It allows the users to search an arbitrary location in a file.
In file handling, there are two syntax for seekg(): the first one is streampos position while the second is streamoff offset.
Ofstrem is used for writing in files and it can be used as a file stream required for seekg().
Similar questions
Science,
7 months ago
Hindi,
7 months ago
Computer Science,
1 year ago
Accountancy,
1 year ago
English,
1 year ago