Read file C#
Without the Console.ReadLine(); the console closes immediately, So how can I get the code to read the file and stay open without the readline
8 Replies
As far as I'm aware you will need something like that while you're debugging
That, or use the setting in Vs to "keep window open after debugging" or something like that
It's a toggle somewhere in the options
ah wasn't aware of that!
something something Rider user
The Cyotek Blog
New option in Visual Studio 2019 keeps console window open after de...
A brief note on a small change made to Visual Studio 2019 that may be helpful for debugging .NET Core console applications.
Best I can find on mobile
Only works on modern dotnet
My answer to this is just to run the program from a terminal window instead of from Visual Studio, although yes now there is an option to keep the window open and not close it in VS.
ty