string into tokens

G

Guest

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,114
Latest member
GlucoPremiumReview
Top