Answer to Question #42178 in C# for Rakesh chaudhary

Question #42178
write a C# program the code that heavy should write to create the desired file information viewer application
1. File name
2.File creation date
3.File size
1
Expert's answer
2014-05-12T06:52:27-0400
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FileApplication
{
class Program
{
static void Main(string[] args)
{
FileInfo f = new FileInfo("D:\\info.txt");
Console.WriteLine("Name: {0}", f.Name);
Console.WriteLine("Creation Time: {0}", f.CreationTime);
Console.WriteLine("Size(bytes): {0}", f.Length);
Console.ReadLine();
}
}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS