Back to Browse

C# Read and Write to a Text File

125.6K views
Jul 24, 2019
7:09

See my complete course list at http://studycoding.org Go to http://StudyCoding.org to subscribe to the full list of courses and get source code for projects. Console app example of reading and writing to a file. Part of the C# intermediate programming course. Full playlist is here https://www.youtube.com/watch?v=hvPlhK9jqMM&list=PLhPyEFL5u-i03yjAvWPwYyG6s3K0jH8QX Next video: https://www.youtube.com/watch?v=EY7IdBDl4PI Contents 0:00 File IO introduction and goals for this tutorial 0:45 Demo of the test application 1:10 Create a new console app 1:35 Create a text document 2:20 Create a filepath string using the @ symbol for literal strings 3:00 Create an array of strings 3:20 using system.io 3:40 ReadAllLines

Download

1 formats

Video Formats

360pmp413.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

C# Read and Write to a Text File | NatokHD