Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.3k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.7k+ articles
JavaScript
11.5k+ articles
C#
1.8k+ articles
C# Programs
140+ articles
CSharp-programs
80 articles
CSharp-File-Handling
63 posts
Popular Articles
Recent Articles
C# Program to Estimate the Size of Folder
Last Updated: 20 December 2021
The size of the folder is a sum of the size of files and subfolders included in the folder. Here, we will learn to calculate the size of any
...read more
C#
Picked
C# Programs
CSharp-File-Handling
C# - Reading Lines From a File Until the End of File is Reached
Last Updated: 27 December 2021
Given a file, now our task is to read lines from the file until the end of the file using C#. Before reading the lines from a file we must h
...read more
C#
Picked
C# Programs
CSharp-File-Handling
File.WriteAllText(String, String, Encoding) Method in C# with Examples
Last Updated: 01 June 2020
File.WriteAllText(String, String, Encoding) is an inbuilt File class method that is used to create a new file, writes the specified string t
...read more
C#
CSharp-File-Handling
Similar Topics
Web Technologies
40.3k+ articles
DSA
22.3k+ articles
Python
20.1k+ articles
Experiences
17k+ articles
Interview Experiences
13.6k+ articles
School Learning
11.7k+ articles
JavaScript
11.5k+ articles
C#
1.8k+ articles
C# Programs
140+ articles
CSharp-programs
80+ articles
File.ReadAllText(String) Method in C# with Examples
Last Updated: 25 April 2025
File.ReadAllText(String) is an inbuilt File class method that is used to open a text file then reads all the text in the file and then close
...read more
C#
CSharp-File-Handling
File.ReadLines(String) Method in C# with Examples
Last Updated: 01 June 2020
File.ReadLines(String) is an inbuilt File class method that is used to read the lines of a file.Syntax:public static System.Collections.Gene
...read more
C#
CSharp-File-Handling
File.ReadAllLines(String, Encoding) Method in C# with Examples
Last Updated: 25 April 2025
File.ReadAllLines(String, Encoding) is an inbuilt File class method that is used to open a text file then reads all lines of the file into a
...read more
C#
CSharp-File-Handling
File.Create(String) Method in C# with Examples
Last Updated: 25 April 2025
File.Create(String) is an inbuilt File class method which is used to overwrites an existing file else create a new file if the specified fil
...read more
C#
CSharp-File-Handling
File.Open(String, FileMode, FileAccess, FileShare) Method in C# with Examples
Last Updated: 25 April 2025
File.Open(String, FileMode, FileAccess, FileShare) is an inbuilt File class method that is used to open a FileStream on the specified path,
...read more
C#
CSharp-File-Handling
File.Copy(String, String) Method in C# with Examples
Last Updated: 25 April 2025
File.Copy(String, String) is an inbuilt File class method that is used to copy the content of the existing source file content to another de
...read more
C#
CSharp-File-Handling
File.WriteAllLines(String, String[], Encoding) Method in C# with Examples
Last Updated: 25 April 2025
File.WriteAllLines(String, String[], Encoding) is an inbuilt File class method that is used to create a new file, writes the specified strin
...read more
C#
CSharp-File-Handling
File.OpenText() Method in C# with Examples
Last Updated: 25 April 2025
File.OpenText(String) is an inbuilt File class method which is used to open an existing UTF-8 encoded text file for reading.Syntax:Â Â publi
...read more
C#
CSharp-File-Handling
File.CreateText() Method in C# with Examples
Last Updated: 25 April 2025
File.CreateText() is an inbuilt File class method that is used to overwrite the contents of the existing file with the given UTF-8 encoded t
...read more
C#
CSharp-File-Handling
File.GetCreationTime() Method in C# with Examples
Last Updated: 28 April 2020
File.GetCreationTime(String) is an inbuilt File class method which is used to return the creation date and time of the specified file or dir
...read more
C#
CSharp-File-Handling
File.AppendAllText(String, String, Encoding) Method in C# with Examples
Last Updated: 25 April 2025
File.AppendAllText(String, String, Encoding) is an inbuilt File class method which is used to append the specified string to the given file
...read more
C#
CSharp-File-Handling
Basics Operations of File and Directory in C#
Last Updated: 13 September 2021
In this article, we are going to cover how to create, delete and rename directory and also how to delete and rename the file.Creating a Dire
...read more
C#
CSharp-File-Handling
First
1
2
3
4
5
>>
Last
First
1
2
3
4
5
>>
Last
First
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !