473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Parsing a filename

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
Jul 21 '05 #1
4 1914
Richard L Rosenheim <ri*****@rlr.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2
System.IO.Path
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:ee**************@TK2MSFTNGP11.phx.gbl...
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

Jul 21 '05 #3
Hi,
Look at the System.IO.Path class methods.

"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:ee**************@TK2MSFTNGP11.phx.gbl...
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

Jul 21 '05 #4
Thanks -- that's what I was looking for.

Richard Rosenheim
"Shiva" <sh******@online.excite.com> wrote in message
news:eu*************@TK2MSFTNGP10.phx.gbl...
Hi,
Look at the System.IO.Path class methods.

"Richard L Rosenheim" <ri*****@rlr.com> wrote in message
news:ee**************@TK2MSFTNGP11.phx.gbl...
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

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dont bother | last post by:
Hey, I have been trying to parse emails: But I could not find any examples or snippets of parsing emails in python from the documentation. Google did not help me much too. I am trying to...
2
by: Cigdem | last post by:
Hello, I am trying to parse the XML files that the user selects(XML files are on anoher OS400 system called "wkdis3"). But i am permenantly getting that error: Directory0: \\wkdis3\ROOT\home...
2
by: Mark | last post by:
Hi... We've been doing some basic performance testing comparing asp, asp.net, mono, and php. One of the basic tests is on simply parsing an xml document and streaming the result back to the...
3
by: Chris | last post by:
Hi everyone, I'm trying to parse through the contents of some text files with regular expressions, but am new to regular expressions and how to use them in VB.net. I'm pretty sure that the...
4
by: marc.omorain | last post by:
Hi there, I have a 28mb XML file which I parse with SAX. I have some processing to do in the startElement / endElement callbacks, which slows the parsing down to about 60 seconds on my machine....
2
by: Prabhu Gurumurthy | last post by:
Hello list, I would like to parse IPv6 addresses and subnet using re module in python. I am able to either parse the ipv6 address or ipv6 network but not both using single line. any help...
2
by: pramodkh | last post by:
Hi All I am parsing a word doc using perl. I am using Win32::OLE module for this. I am able to get the Paragraphs/styles/Text from the word doc. But facing some problem when I am trying to get...
2
by: drjay | last post by:
I'm trying to get my script to parse a bunch of files and grab data between the <title></> and <blah></> tags. Yes yes, I'm parsing html with regex, it works though. :) The issue I have is...
2
by: python | last post by:
I'm parsing a text file for a proprietary product that has the following 2 directives: #include <somefile> #define <name<value> Defined constants are referenced via <#name#syntax. I'm...
10
by: len | last post by:
I have created the following program to read a text file which happens to be a cobol filed definition. The program then outputs to a file what is essentially a file which is a list definition...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.