I would suggest C++ then.

Use a std::string variable to store each line, and use the getline() method to read a whole line (it's length won't matter).