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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top