C# C# Streams and Data Processing Reading Data Console I/O

Gerhard Popp
Gerhard Popp
15,962 Points

Console closes

Ive tryed the code from the video but my console allways closes emediatly after the the code ran. Is there a setting in vs to keep the console open?

1 Answer

Steven Parker
Steven Parker
186,966 Points

You could add an extra input.

One popular trick is to place a "Console.ReadKey()" call at the very end of the program so it doesn't actually end until you press a key.