requestfile parse path
BlitzMax Forums/BlitzMax Beginners Area/requestfile parse path
| ||
Hi ! how to parse the result returned by requestfile to have only the file path ? Thanks ! |
| ||
I don't understand what you mean.Print RequestFile("") Picking a random file C:\BlitzMax\bin\makedocs.exe To get only the file name, try Local path:String[] = RequestFile("").Split("\") Local name:String = path[path.Length-1] Print name |
| ||
i'm searching to get only the path without the file name. |
| ||
Local path:String = RequestFile("") Local result:String = path[..path.FindLast("\")] Print result Also consider RequestDir |
| ||
Many thanks ! |
| ||
Or ExtractDir(requestfile()) |