Parsing a filename

  • Thread starter Richard L Rosenheim
  • Start date
R

Richard L Rosenheim

I have a recollection that somewhere in the .Net Framework are methods that
will parse a fully qualified filename into its components (path, base file
name, extension, etc.). Unfortunately, I'm having trouble finding it
(assuming that my memory is correct). Can someone point me to it?

TIA,

Richard Rosenheim
 
J

Jon Skeet [C# MVP]

Richard L Rosenheim said:
I have a recollection that somewhere in the .Net Framework are methods that
will parse a fully qualified filename into its components (path, base file
name, extension, etc.). Unfortunately, I'm having trouble finding it
(assuming that my memory is correct). Can someone point me to it?

Look at FileInfo, DirectoryInfo etc.
 
S

Shiva

Hi,
Look at the System.IO.Path class methods.

I have a recollection that somewhere in the .Net Framework are methods that
will parse a fully qualified filename into its components (path, base file
name, extension, etc.). Unfortunately, I'm having trouble finding it
(assuming that my memory is correct). Can someone point me to it?

TIA,

Richard Rosenheim
 

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

Top