Introduction to Computer Science in C#
30 Nov 2021
Context
C# Data and Operations
Defining Functions of your Own
Basic String Operations
Decisions
While Loops
Foreach Loops
For Loops
Files, Paths, and Directories
Files As Streams
Writing Files
Reading Files
Path Strings
Directory Class
File Class
Command Line Execution
FIO Helper Class
Chapter Review Questions
Arrays
Lists
Dictionaries
Classes and Object-Oriented Programming
Testing
Interfaces
Recursion
Data Structures
Appendix
Introduction to Computer Science in C#
»
Files, Paths, and Directories
View page source
Files, Paths, and Directories
Files As Streams
Writing Files
Reading Files
Reading to End of Stream
Example: Sum Numbers in File
Example Copy to Upper Case
Path Strings
Paths in C#
Directory Class
File Class
Command Line Execution
FIO Helper Class
Chapter Review Questions