string into tokens

Discussion in 'ASP .Net' started by =?Utf-8?B?TFc=?=, Oct 13, 2005.

  1. Hi!
    Sorry if this is the wrong newsgroup but I am looking for a class/method
    that will enable me to break a string into tokens like the java
    StringTokenizer class.

    I have a path to a filename like so

    c:\\Folder1\\Folder2\\file.txt

    I want to check if the folders Folder1 and Folder2 exist and if not then I
    will create
    them. Are there any built in C# methods that I should use ? If there is an
    easier
    way to do this, please let me know.

    Thanks for your help!
    LW
     
    =?Utf-8?B?TFc=?=, Oct 13, 2005
    #1
    1. Advertising

  2. Thanks Elton. That did the trick.

    LW


    "Elton W" wrote:

    > Try string.Split method.
    >
    > HTH
    >
    > Elton Wang
    >
    >
    >
    > "LW" wrote:
    >
    > > Hi!
    > > Sorry if this is the wrong newsgroup but I am looking for a class/method
    > > that will enable me to break a string into tokens like the java
    > > StringTokenizer class.
    > >
    > > I have a path to a filename like so
    > >
    > > c:\\Folder1\\Folder2\\file.txt
    > >
    > > I want to check if the folders Folder1 and Folder2 exist and if not then I
    > > will create
    > > them. Are there any built in C# methods that I should use ? If there is an
    > > easier
    > > way to do this, please let me know.
    > >
    > > Thanks for your help!
    > > LW
     
    =?Utf-8?B?TFc=?=, Oct 13, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?RWx0b24gVw==?=

    RE: string into tokens

    =?Utf-8?B?RWx0b24gVw==?=, Oct 13, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    431
    =?Utf-8?B?RWx0b24gVw==?=
    Oct 13, 2005
  2. Jonathan Fine

    Converting TeX tokens into characters

    Jonathan Fine, Jun 29, 2005, in forum: Python
    Replies:
    0
    Views:
    361
    Jonathan Fine
    Jun 29, 2005
  3. Atlas
    Replies:
    2
    Views:
    306
    Alf P. Steinbach
    Oct 1, 2005
  4. Hal Fulton

    Breaking Ruby code into tokens

    Hal Fulton, Oct 4, 2003, in forum: Ruby
    Replies:
    2
    Views:
    128
    Hal Fulton
    Oct 5, 2003
  5. Replies:
    2
    Views:
    92
    Paul Lalli
    Jul 15, 2004
Loading...

Share This Page