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# Basics (Retired) Console I/O Console I/O

Thomas Newton
PLUS
Thomas Newton
Courses Plus Student 2,442 Points

C# Basics String Help

I am struggling with one of the tasks on the C# Basics course. I am being asked to "read the user's response and feed it back into the bookTitle variable". Yet nothing in the video tutorial prior to this task suggested any hints on how to do this, and my attempts at using the System.Console.ReadLine as outline in the tutorial are not working. I would appreciate any help on this problem.

CodeChallenge.cs
string bookTitle = "Jam";
System.Console.Write("Enter a book title: ");
string entry = Systen.Console.ReadLine('bookTitle');

3 Answers

Marco Boretto
Marco Boretto
29,821 Points

you wrote systen instead of system cheers

anil rahman
anil rahman
7,786 Points
string bookTitle = "Jam"; //task 1 & 2
System.Console.Write("Enter a book title: "); //task 3
bookTitle = System.Console.ReadLine(); //task 4
Thomas Newton
PLUS
Thomas Newton
Courses Plus Student 2,442 Points

Thanks, everyone! I managed to solve this issue in short order.