How can we identify the size of file in C#.NET

  • Thread starter Thread starter Mamatha
  • Start date Start date
M

Mamatha

Hi

I am developing a small application,in that application i have small
doubt,that is can we identify file name while at the time of creating a
file.
If possible please let me know,Otherwise,how can we know the size of file if
we give file path?
Please give me solution.

Thanks in advance
Mamatha
 
Mamatha said:
I am developing a small application,in that application i have small
doubt,that is can we identify file name while at the time of creating a
file.

Not sure what you're after here - surely if you're creating the file,
you know its name already.
If possible please let me know,Otherwise,how can we know the size of
file if we give file path?

See FileInfo.Length.
 
Back
Top