I'm working with a file. I want to write a code that returns a particular string located somewhere in the file. I have the starting position of the desired string and it's length so I thought that i can use getline. but i'm not sure how to do that.For using get line can i use the position of the pointer of the file as first argument?
I know that getline needs a pointer to an array of characters and the number of characters as input. I'm not familiar with the concept of pointer that much and i 'm not sure if the position of the pointer is equivalent to the pointer itself. Can anybody help me with this please.
I know that getline needs a pointer to an array of characters and the number of characters as input. I'm not familiar with the concept of pointer that much and i 'm not sure if the position of the pointer is equivalent to the pointer itself. Can anybody help me with this please.
Comment