Skip to content

Tag Archives: CSharp-File-Handling

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
File.SetCreationTime(String, DateTime) is an inbuilt File class method that is used to set the local date and time the file was created.Syntax:   public static void… Read More
File.Exists(String) is an inbuilt File class method that is used to determine whether the specified file exists or not. This method returns true if the… Read More
Termination of a program leads to the deletion of all data related to it. Therefore, we need to store the data somewhere. Files are used… Read More
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… Read More

Start Your Coding Journey Now!