Hello, everyone. Like to thank all those who took the time to look at this thread. I'm in need of some assitance. I'm trying to get a program to read from the second line instead of the first line of a txt file. Here is what I have so far:
That makes it get from the first line. But everything I've tried to make it read from the second instead, hasn't worked. So can anyone help me out?Code:#include <iostream.h> #include <fstream.h> int main() { char a[200]; ifstream inFile("a:\\joey.txt", ios::in); inFile.get(a,200); cout<<a<<endl; inFile.close(); }