Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / GetRelativeFilename - Returns the relative file position ie ..\..\..\file.txt

Author
Message
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 8th Mar 2011 01:05 Edited at: 8th Mar 2011 01:07
I needed to have a relative path for storing filenames and started writing one myself but to no avail. Amazingly though I came across the perfect solution:

EDIT: The above title should say ..\..\..\file.txt



Many thanks to Rob Fisher for this. And I know this is another very useful function for anyone who needs something like this.

Warning! May contain Nuts!

Login to post a reply

Server time is: 2024-11-19 12:46:48
Your offset time is: 2024-11-19 12:46:48