How to edit .LAN Files with delphi 7 -


i want edit .lan files delphi 7. can open them using notepad. question can same using delphi also? or there in-built functions tinifile,tregistry etc. has inbuilt functions?

ideas appreciated. thanks

if can open .lan file in notepad (and content makes sense), means .lan file plain-text file. and, of course, plain-text files can opened in delphi. open way open 'normal' .txt file (using tstringlist, instance). doesn't matter extension different, long plain-text file.

now, have no idea .lan file contains. not common file format, pretty sure rtl/vcl has no parser it.

however, if .lan file has structure of .ini file, -- of course -- can treat .ini file , use tinifile (or tmeminifile).

one word of caution, however. using old version of delphi. delphi 7 doesn't support unicode in vcl, if .lan files unicode, need apply trix when reading , writing it.

(if utf-8 without bom, might lose special characters, it. if there bom, remove it. if file using 2 bytes per character, strange e v e n   f   t   d o e s n ' t   c o n t n   n y   s p e c l   c h r c t e r s. in case, trix you.)


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -