Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C#

[C#] How to read all the line from Console

Hello

I would like to write a Console program with the following action 1 - User enter a paragraph into Console screen 2- The program read all the line and save to a text file I am stuck at the step how can I read all the line of the input. Because Console just allow us to read only one line

Thank you so much!

1 Answer

It would be Console.ReadLine();

Well actually Console.ReadLine() just allow us to read ONE line. How to get to the others?