Computer Science, asked by Premansh4061, 11 months ago

Which file stream is required for seekg() ?

Answers

Answered by Rahul161817231
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 Arslankincsem
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 Arslankincsem
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