2
Answers

how to get first folder name from a file path??

Sujeet Raman

Sujeet Raman

4y
2.6k
1
i have a file path like 
 
path =01ABCDATA\apps\data2\names\fstname
 
here i need to get the first part 01ABCDATA   
 
i need to get the first word before firxtslash..how will we do this?
Answers (2)