Computer Science, asked by ajitayan13, 10 months ago

write a program to read every even character from a Random Access file using seekg() method and write all those characters on to a different file.

Answers

Answered by Shaizakincsem
0

To read the even characters we will set positions with seekg() in C++ language file handling.

Explanation:

  • It is the type of function in the iostream library that helps us to seek an arbitrary position in a file

  • We extract the next character from the input stream and find it with the help of this.

  • For example :

  • Input: "Hello World" Output: World.

  • Syntax – There are two syntaxes for seekg() in file handling.

Learn more about it.

Explain I/O streams in C++

https://brainly.in/question/6866875

Similar questions