N
Noodle
Hi There,
Can anyone tell me what is the best way to seperate a filename and a
path so I'm left with 2 strings.
e.g.
Turn this input: "C:\path\to\my\file.txt" into:
String path = "C:\path\to\my";
String file = "file.txt";
as well as turning this: "/path/to/my/file.txt"
String path = "/path/to/my";
String file = "file.txt";
TIA
Can anyone tell me what is the best way to seperate a filename and a
path so I'm left with 2 strings.
e.g.
Turn this input: "C:\path\to\my\file.txt" into:
String path = "C:\path\to\my";
String file = "file.txt";
as well as turning this: "/path/to/my/file.txt"
String path = "/path/to/my";
String file = "file.txt";
TIA