Console.WriteLine("bla bla - enter xx to exit");
string line;
while((line = Console.ReadLine()) != "xx")
{
string result = DoSomethingWithThis(line);
Console.WriteLine(result);
}
More Related Contents:
- Custom text color in C# console application?
- Having the output of a console application in Visual Studio instead of the console
- C# – How to convert variables? (String, int, etc.) [duplicate]
- How can I read, write, and modify the contents of a notepad (.txt) file, in Winform and WPF? [duplicate]
- What is the purpose of the “Prefer 32-bit” setting in Visual Studio and how does it actually work?
- Make an Installation program for C# applications and include .NET Framework installer into the setup
- Unity Scripts edited in Visual studio don’t provide autocomplete
- Configuration System Failed to Initialize
- What use is the Aliases property of assembly references in Visual Studio 8
- How can I read user input from the console?
- Suppressing “is never used” and “is never assigned to” warnings in C#
- addFontFile from Resources
- How to set conditional breakpoints in Visual Studio?
- What is the best practice for “Copy Local” and with project references?
- Using msbuild to execute a File System Publish Profile
- How to download a Nuget package without nuget.exe or Visual Studio extension?
- Project builds but can’t publish
- Is it possible to intercept Console output?
- Circular dependencies
- Why are there System.*.* dlls in my bin release directory?
- How to find the reason for a failed Build without any error or warning
- How to save DLLs in a different folder when compiling in Visual Studio?
- Can the Visual Studio Debugger display strings unquoted/unescaped?
- Display an Image in a console application
- Which files in a Visual C# Studio project don’t need to be versioned?
- The OutputPath property is not set for this project
- WPF window from a Console project?
- How to change text in a textbox on another form in Visual C#?
- Xamarin : Android : System.UnauthorizedAccessException: Access to the path is denied
- Custom Color Palette in Visual Studio Color Property Editor