nf67 Posted June 14, 2009 Share Posted June 14, 2009 (edited) Hi there,I have a question about saving data:Let's say I have a GUI with multiple inputs, once I have filled them in I press a button which saves the GUICtrlRead results of all inputs in one file.Next time I start the program I want to be able to load all this data from 1 file back in the appropriate inputs (by clicking a button for example).Is there any preferred method of doing this? Or should I use a special filetype to store the data in?Since I've only used .txt files as resource so far, I started trying using a .txt:$Text = FileRead(@ScriptDir & "Example.txt") GUICtrlSetData($Input1, $Text) Edited June 14, 2009 by nf67 Link to comment Share on other sites More sharing options...
Zedna Posted June 14, 2009 Share Posted June 14, 2009 (edited) Use @TAB (or another char) as separator FileWrite($value1 & @TAB & $value2) When loading use StringSplit() Edited June 14, 2009 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
nf67 Posted June 14, 2009 Author Share Posted June 14, 2009 Thank you Zedna, I'll have a look as soon as I'm back at my own comp . Link to comment Share on other sites More sharing options...
nf67 Posted June 14, 2009 Author Share Posted June 14, 2009 Ok got it, edited the 1st post, thanks once again . 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