C# Tutorial for Beginners #36 - File IO (Reading, Writing, and Manipulating)
Channel:
Subscribers:
8,960
Published on ● Video Link: https://www.youtube.com/watch?v=jzXF5a34Zv4
Using the File class to read files, write files, append to files, as well as exists, copy, move/rename, and delete functions. Also tips on the File class, and how to use the Path class to easily combine paths.
If you are feeling adventurous, try writing and appending lines from a string array to your file with File.WriteAllLines and File.AppendAllLines!
Please let me know if you have any questions. Happy coding!
Chapters:
0:00 Intro
0:22 Path.Combine
2:06 Writing a File
3:12 Appending to a File
4:19 Reading a File
4:59 Reading Lines from a File
5:58 Exists
6:34 Copying a File
7:34 Moving/Renaming a File
8:35 Deleting a File
9:53 File Class Tips
10:39 Future Considerations
11:22 Next Up
Other Videos By Kampa Plays
Tags:
oop
c#
directory
File System
IO
file io