Topics

Csharp File

About this topic: Articles tagged __TAG__

Showing 19 articles

Topics

Articles

Showing 19 articles

How-tos How to Read a File to String in C# Learn how to read a file to a string in C How-tos How to Rename a File in C# This article introduces how to rename a file in C How-tos How to Check Whether a File Exists in C# Learn how to check whether a file exists in C How-tos How to Download a File From a URL in C# Learn how to download a file from a URL in C How-tos How to Delete a File in C# Learn how to delete a file in C How-tos How to Write a Stream to a File in C# Learn how to efficiently write a stream to a file in C How-tos How to Unzip a Zip File in C# Learn how to unzip a ZIP file in C How-tos How to Get File Name From the Path in C# This article provides a comprehensive guide on how to get the file name from a path in C How-tos How to Read and Write to a File in C# There are 4 main methods that can be used to read data from and write data to a file in C#, the File.WriteAllText() function, the File.ReadAllText() function, the StreamWriter … How-tos How to Get Relative Path of a File in C# There are 2 main methods that can be used to generate the relative path of a file in C#, the Path class, and the resources.resx file. How-tos How to Get File Size in C# The FileInfo.Length property can be used to get the size of a file in C#. How-tos How to Get All File Names in a Directory in C# There are two main methods that can be used to get the file names of all the files inside a directory in C#, the Directory.GetFiles() function and the DirectoryInfo.GetFiles() … How-tos How to Append to Text File in C# There are three main methods that can be used to append to a text file in C#, the File.AppendAllText() method, the StreamWriter class, and the File.AppendText() How-tos How to Delete All Files in a Directory in C# There are two main methods that can be used to delete all the files inside a directory in C#, the FileInfo.Delete() function and the DirectoryInfo.Delete() function. How-tos How to Write XML Into a File in C# In this tutorial, we will learn how to utilize the C# programming language to put XML into a file. How-tos How to Write JSON Into File in C# In this post, we'll learn how to use the C# programming language to construct basic JSON objects and write them to a file. How-tos How to Read Embedded Resource Text File in C# This tutorial teaches you how to read embedded resource text files using C# programming language. How-tos How to Read PDF File in C# This is a trivial guide on how we can parse a PDF document in the C# program. How-tos How to Read a Text File Line by Line in C# This how-to article shows different methods to read a text file line by line in C#. It introduces methods like File.ReadLines(), File.ReadAllLines() and StreamReader.ReadLine()

← All topics