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) Perform if / else

Gustav Aldenberg
Gustav Aldenberg
160 Points

Text appearing in console not the same as my "Console.Write();" text

I change my text in the code line "Console.Write();" but the text appearing when i run the program in console is not the same as i wrote but it's an older one. Somehow it wont let me change the text.

1 Answer

Steven Parker
Steven Parker
231,269 Points

Be sure to save your edit and recompile.

Any changes made in the editor do not get into the source file until you save using the menu or key shortcut. An orange dot on the filename tab will remind you if you have made changes that have not yet been saved.

Then after saving, you will need to re-compile the program before the results of your changes will be seen when you run the program.

If this doesn't resolve your issue, try making a snapshot of your workspace and post the link to it here to enable a more thorough analysis.