I have a FILE* object from which I want to read line by line. The most common approach however is to pass a directory to ifstream and use getline(ifstream, line) in a while loop to read line by line.
However I do not have a directory. I have to work with FILE*. Is there a getline() that accepts a FILE* as parameter? or, in general is there another way in c++ to read lines with FILE*
C read file line by line does not work for me since i'm not on linux.
I was also thinking if an ifstream can accept a FILE instead of a directory but I am not sure about this. can anyone confirm?
 
    