Jump to content

opening config file


Recommended Posts

Hello:

I am able to read and wirte to a configuration file. My problem is that the operator has to select a configutation file everytime they run the program. I need to be able to have my program open the file without having the operator to select to open a file.

Link to comment

QUOTE(sertol @ Mar 7 2007, 10:48 AM)

Hello:

I am able to read and wirte to a configuration file. My problem is that the operator has to select a configutation file everytime they run the program. I need to be able to have my program open the file without having the operator to select to open a file.

It would be easiest to point out how to fix the problem if you posted the code or at least a picture of where you are having to select the configuration file in the code.

The short answer is to wire in a path constant containing the path of the config file rather than leaving it unwired or using a file dialog.

David

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.