How to import line from .txt file into .C macro


I was wondering if it is possible to import a line from a .txt (say the second to last line from end) into a macro automatically from within the macro?


This question should be asked on a C++ forum (see link below). C++ can handle this easily and I’ve included a link to a page where I often frequent as a reference.

ifstream datafile ("datain.txt"); seek end of file back up 2 lines read line