Accepting newlines in file input from user?

I'm making a text editor with c++,and it all works fine except that newlines don't register.
I found that using GetASyncKeyState can be used.
But I want to ask if there's an easier method to accept newlines?

Topic archived. No new replies allowed.