amaussa Posted February 25, 2006 Share Posted February 25, 2006 I seek a simple model of script which can read a ini file, to post the values in a table and after modifications values to record again in the input file example of .ini file [ATTRIBUTES] cle1=001 cle2=002 cle3=003 cle4=equipement cle5=. ... I am new with this environment and a example to help little with undestand and to save time I don't have pb to use function iniread,iniwrite but I don't undextand how to interface the value on .ini file with GUI interface. there are many sample on the forum, but I would like to find for example a very simple program ( read .ini , view the value on the box or other, possibilite to modify this value, and close and save the new value inside the .ini) thank AM Link to comment Share on other sites More sharing options...
cppman Posted February 25, 2006 Share Posted February 25, 2006 IniWrite ("yourfile.ini", "ATTRIBUTES", "cle1", "001" ) IniWrite ("yourfile.ini", "ATTRIBUTES", "cle2", "002" ) IniWrite ("yourfile.ini", "ATTRIBUTES", "cle3", "003" ) IniWrite ("yourfile.ini", "ATTRIBUTES", "cle4", "qupement" ) to read those values use IniRead ("yourfile.ini", "ATTRIBUTES", "cle1", "") IniRead ("yourfile.ini", "ATTRIBUTES", "cle2", "") IniRead ("yourfile.ini", "ATTRIBUTES", "cle3", "") IniRead ("yourfile.ini", "ATTRIBUTES", "cle4", "") Miva OS Project Link to comment Share on other sites More sharing options...
amaussa Posted February 26, 2006 Author Share Posted February 26, 2006 IniWrite ("yourfile.ini", "ATTRIBUTES", "cle1", "001" )IniWrite ("yourfile.ini", "ATTRIBUTES", "cle2", "002" )IniWrite ("yourfile.ini", "ATTRIBUTES", "cle3", "003" )IniWrite ("yourfile.ini", "ATTRIBUTES", "cle4", "qupement" )to read those values useIniRead ("yourfile.ini", "ATTRIBUTES", "cle1", "")IniRead ("yourfile.ini", "ATTRIBUTES", "cle2", "")IniRead ("yourfile.ini", "ATTRIBUTES", "cle3", "")IniRead ("yourfile.ini", "ATTRIBUTES", "cle4", "")ThanksBut I want to be able to read the file .ini independamment of the value ( 001,...) and to post it. How to make? Link to comment Share on other sites More sharing options...
nfwu Posted February 26, 2006 Share Posted February 26, 2006 not sure what you want but this may help you:_DialogEditIni()#) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now