Open file from the console and display in system? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Open file from the console and display in system?

As i run a program in c# console tha: if the user wishes ti create a new file he must perform the operations of visualizing the system you must ask me for the file that you want to display on the screen, display the contents on the screen and then ask me if i want to add something to it, if i want to add it and ask what i should add and write to file.if the user decides to create a new file, the system must ask for the path, the name of file and operation and perfom the process of creating the file and savi

19th Feb 2017, 10:02 PM
Eliezel Urban
Eliezel Urban - avatar
2 Answers
+ 1
Hello, you can check C# official documentation for opening and writing to text files. Link: https://msdn.microsoft.com/en-us/library/6ka1wd3w(v=vs.110).aspx
13th Mar 2017, 6:44 PM
Adrian M
Adrian M - avatar
0
You can get sistem info from the Environment Class Library https://msdn.microsoft.com/en-us/library/system.environment.osversion(v=vs.110).aspx
13th Mar 2017, 6:50 PM
Adrian M
Adrian M - avatar