Hi,
I'd like to write code for my software that is able to read a configuration (for multiple languages, so it will be language files) from an INI file. Lot's of application do that, and this way, it is very easy to translate your app in many different languages. An example:
[Executables]
PVA Executable=
vStrip Executable=C:\Program Files\DVD2SVCD\vStrip\vStrip.exe
DVD2AVI Executable=C:\Program Files\DVD2SVCD\DVD2AVI\DVD2AVI.exe
BeSweet Executable=C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe
MADPlay Executable=C:\Program Files\DVD2SVCD\MADPlay\madplay.exe
MPEG51 Executable=C:\Program Files\DVD2SVCD\MPEG5.1\pub_enc.exe
CCE Executable=
QuEnc Executable=
VFAPI Executable=C:\Program Files\DVD2SVCD\VFAPI\Reader\VFAPIConv-EN.exe
and so on. This fragment came from an INI file of DVD2SVCD (an app to convert DVDs in many different formats). This is done too for languages.
A fictive example: (for a Dutch language file)
[Menus]
LoadFile="Laad Bestand"
Exit="Afsluiten"
[Buttons]
OK="OK"
Cancel="Annuleren"
[...]
...
How can I do this in Visual Basic? Should I write a parser or something similar, and if so, how should I start with it?
Thanks in advance
I'd like to write code for my software that is able to read a configuration (for multiple languages, so it will be language files) from an INI file. Lot's of application do that, and this way, it is very easy to translate your app in many different languages. An example:
[Executables]
PVA Executable=
vStrip Executable=C:\Program Files\DVD2SVCD\vStrip\vStrip.exe
DVD2AVI Executable=C:\Program Files\DVD2SVCD\DVD2AVI\DVD2AVI.exe
BeSweet Executable=C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe
MADPlay Executable=C:\Program Files\DVD2SVCD\MADPlay\madplay.exe
MPEG51 Executable=C:\Program Files\DVD2SVCD\MPEG5.1\pub_enc.exe
CCE Executable=
QuEnc Executable=
VFAPI Executable=C:\Program Files\DVD2SVCD\VFAPI\Reader\VFAPIConv-EN.exe
and so on. This fragment came from an INI file of DVD2SVCD (an app to convert DVDs in many different formats). This is done too for languages.
A fictive example: (for a Dutch language file)
[Menus]
LoadFile="Laad Bestand"
Exit="Afsluiten"
[Buttons]
OK="OK"
Cancel="Annuleren"
[...]
...
How can I do this in Visual Basic? Should I write a parser or something similar, and if so, how should I start with it?
Thanks in advance