Micro Focus QTP (UFT) Forums
Whats the best way to edit a .ini file? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Whats the best way to edit a .ini file? (/Thread-Whats-the-best-way-to-edit-a-ini-file)



Whats the best way to edit a .ini file? - KonstantinF - 02-04-2009

Hi,
whats the best way to edit a .ini file with QC?
Can`t find something useful in the help.

best regards,
Konstantin


RE: Whats the best way to edit a .ini file? - tarunlalwani - 02-04-2009

What is the link here? QC and .ini? Please elaborate


RE: Whats the best way to edit a .ini file? - KonstantinF - 02-04-2009

ah sorry.. i meant qt(quicktest) Tongue
i want to modify a .ini file via vb.
and i dont know how!?
in the help stands that i should use GetProfileStringA, but it does not work.


RE: Whats the best way to edit a .ini file? - tarunlalwani - 02-04-2009

Look at this
http://msdn.microsoft.com/en-us/library/ms725504(VS.85).aspx

Just use similar approach