Public static void main(args){
String input = Console.ReadLine();
Console.WriteLine(input);
}
Instead of typing-in the value for 'input' variable using keyboard, Would it be possible to load input values using a file?
I do not want to use 'args' to pass values.
For example: For Online C# editors, we would type-in input values inside a <text-area> and this would be automatically sent to Console.ReadLine() methods.
EDIT: This isn't my production code nor I have any intention to use for work. This is just to understand how online C# editors would run the program with the STDIN data/values provided inside <text-area>