Jump to content
Sign in to follow this  
nf67

Loading data from 1 file into multiple edit's and inputs

Recommended Posts

nf67

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 by nf67

Share this post


Link to post
Share on other sites
nf67

Thank you Zedna,

I'll have a look as soon as I'm back at my own comp :D .

Share this post


Link to post
Share on other sites
nf67

Ok got it, edited the 1st post, thanks once again :D .

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×