Forum > General

Convert File Path a File URL

(1/2) > >>

Hydexon:
Hello, i need some help, how convert the file paths (win: c:/docs/file.txt unix: /home/user/file.txt) in HTTP File URL (file://home/user/file) in any platform?

typo:
Any platform?

fabienwang:
'file://' + path to your file

should work on both linux & windows (i don't know about Mac)

BlueIcaro:
Did you read this?

http://wiki.lazarus.freepascal.org/Multiplatform_Programming_Guide#Configuration_files

/BlueIcaro

Hydexon:
No is for my configuration files, only i want the File HTTP URL-style for open local HTML Files using TGeckoBrowser

Navigation

[0] Message Index

[#] Next page

Go to full version