Write a DLL and use getline().