Jump to content

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


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...