TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
77
13.9k
help me with creation time and last write time of file inside folder
Jul 13 2020 4:22 AM
hi, wanna ask for help
In code below, I will get creation time and last write time of a root folder, but how do I want to get creation time and last write time of files inside root folder.
For example, in the root folder, I have 3 more text files, how to get the creation time, and last write time of that 3 text files using c#.
FileInfo fileInfo = new FileInfo(@"C:\ipub\root");
DateTime creationTime = fileInfo.CreationTime;
DateTime lastWriteTime = fileInfo.LastWriteTime;
DateTime lastAccessTime = fileInfo.LastAccessTime;
MessageBox.Show("Time create : " + creationTime);
MessageBox.Show("Time Edit : " + lastWriteTime);
help me
thank you
I'm using visual studio 2019, c#
Reply
Answers (
4
)
Code that can check CSV file has been process or not
how to i increment months in c# windows application