Hello all,
Another question (I am full of them today!!).
What I want to do is parse a string that holds a file name down to the file name itself....
For example, if I took the value of a "File Upload" textbox, say something like: "C:\Documents\filename.txt",
how could I parse the string into JUST the file name.
I was thinking of taking out anything BEFORE the last slash in the file name (that way a file could be in C:\Some folder\sub folder\sub folder\filename.ext" and I would still only get the file name.
I think it would probably work the easiest parsing from the end of the string... hitting the first slash and then wiping out from there.
Problem is again, I don't have the syntax base yet! If someone could help me out with a method that can do this I would really appreciate it!
thank you all for you help!
Another question (I am full of them today!!).
What I want to do is parse a string that holds a file name down to the file name itself....
For example, if I took the value of a "File Upload" textbox, say something like: "C:\Documents\filename.txt",
how could I parse the string into JUST the file name.
I was thinking of taking out anything BEFORE the last slash in the file name (that way a file could be in C:\Some folder\sub folder\sub folder\filename.ext" and I would still only get the file name.
I think it would probably work the easiest parsing from the end of the string... hitting the first slash and then wiping out from there.
Problem is again, I don't have the syntax base yet! If someone could help me out with a method that can do this I would really appreciate it!
thank you all for you help!