filename without path
BlitzMax Forums/BlitzMax Programming/filename without path
| ||
| whats the easiest way of changing .. /home/someone/soneidr/afilename.jpg to afilename.jpg the most elegent easy solution wins the right to pay £1 to charity a prize you cant refuse! :)) |
| ||
Local dir$ = "/home/someone/soneidr/afilename.jpg" dir = StripDir( dir ) |
| ||
| Function StripDir$( path$ ) |
| ||
| argh, lost the prize :S |
| ||
| Yep, now I get to pay £1 to a charity :D |
| ||
| DUH, i new it was in there somewhere!! as CS_TBL's solution was of equal skill I have decided to award the first prize to both... thx guys |