Skip to content

Tag Archives: CSharp-File-Handling

File.OpenRead(String) is an inbuilt File class method which is used to open an existing file for reading.Syntax:   public static System.IO.FileStream OpenRead (string path); Parameter: This… Read More
File.Delete(String) is an inbuilt File class method which is used to delete the specified file.Syntax:   public static void Delete (string path); Parameter: This function accepts… Read More
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 text and… Read More
File.AppendText() is an inbuilt File class method which is used to create a StreamWriter that appends UTF-8 encoded text to an existing file else it… Read More
File.SetLastAccessTimeUtc(String, DateTime) is an inbuilt File class method which is used to set the date and time, in coordinated universal time (UTC), that the specified… Read More
File.SetLastAccessTime(String, DateTime) is an inbuilt File class method that is used to set the date and time the specified file was last accessed. Syntax:  public… Read More
File.ReadAllBytes(String) is an inbuilt File class method that is used to open a specified or created binary file and then reads the contents of the… Read More
File.GetLastWriteTimeUtc(String) is an inbuilt File class method which is used to return the date and time, in coordinated universal time (UTC), that the specified file… Read More
File.GetLastWriteTime(String) is an inbuilt File class method which is used to return the date and time the specified file or directory was last written to.Syntax:  … Read More
File.GetCreationTimeUtc(String) is an inbuilt File class method which is used to return the creation date and time, in coordinated universal time (UTC), of the specified… Read More
File.GetCreationTime(String) is an inbuilt File class method which is used to return the creation date and time of the specified file or directory. Syntax: public… Read More
File.AppendAllText(String, String, Encoding) is an inbuilt File class method which is used to append the specified string to the given file using the specified encoding… Read More
File.AppendAllText(String, String) is an inbuilt File class method which is used to append the specified string to the given file if that file exists else… Read More
File.SetLastWriteTime(String) is an inbuilt File class method which is used to set the date and time that the specified file was last written to.  Syntax:  … Read More
File.SetCreationTimeUtc(String, DateTime) is an inbuilt File class method that is used to set the date and time, in coordinated universal time (UTC), that the file… Read More

Start Your Coding Journey Now!