Explain the following function for manipulating file pointers, with the help of example program.
- Seekg()
- Seelp()
Seekg():- This function moves the input(get) pointer to a specified location Seekg(offset,refposition);
EXAMPLE:-
#include<iostream.h>
#include<conio.h>
#include<string .h>
void main()
{
char name[40];
int i,ln;
cin>>name;
ln=strlen(name);
________ ____ ________ _____ ________ _________ ________.
____ __________ ____ ____ _________ ____.
______ ________ _________ __________ __________ ______ _______ _______.
__________ _______ _______ ______ _____ ________.
_______ __________ _____ ______ ___ ______ ______ _____ ________ ___.
______ ___ ________ ____ ________ ________ __________ ______ ________ _______.
____ _________ ___ __________ ____.
____ _____ ________ ____ _________ ___ ___ _______ ____ ____ ___ ________.
____ _____ ________ _____ _______ ______ ________ ___.
__________ ________ _____ ___ ____ ________ ________ ____ _________ ____ _______.
_________ ___ ______ _______ __________ ________ _____.
_________ ______ ___ __________ ________ ___ ___ ______ ______.
________ ____ ________ _________ ______ ___ __________.
___ __________ _____ ________ ___ ______ _____ __________ ______ _________ _________.
__________ ______ _____ ________ __________.
_______ _____ _______ __________ ________ _________.
_______ __________ ________ __________ _________ _______ _______ _________ ______ ____ _________ ________.
________ _____ __________ ___.
✓ Unlock up to 60% of the answer
✓ No payment required