New topic: Parsing a path varaible
<http://forums.realsoftware.com/viewtopic.php?t=45114> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message jerryab Post subject: Parsing a path varaiblePosted: Sat Aug 25, 2012 1:29 pm Joined: Mon Dec 12, 2011 7:25 pm Posts: 83 Location: Grand Rapids MI Area What is the best way to parse a string or folder path the get the file name from it on cross platform. Windows uses a \ and mac uses : so i'm not sure whats the best way to parse and get the file name from a full path. Example: C:\folder\folder\folder\file_name.ext I thinking the split command but are there other ways ? _________________ iMac 27" (2.8GHz Intel Core i5, 16GB RAM, 1TB Drive) OS X Lion 10.7.3 Toshiba Laptop Running Windows 7 & WinXP SP3 REAL Studio Enterprise Edition 2011r4.3 http://www.theultimatecampgroundlog.com Being rewritten for the Mac Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
