FileIO will do the job perfectly and as an added bonus you can create a
separate folder containing a text file wherever you feel is appropriate.
Specify a pathname for the file that inlcudes a new or (existing) folder
name e.g. c:\userdata\PaulStevenBeer.txt and it will be created accordingly.

As for storing a user name and password as the file name, simply create a
global of both items and tap on the file extension e.g. set gFile = gName &
gPassword & ".txt". result will be 'PaulStevenBeer.txt'.

Just one thing - probably not a good idea to store a username and password
as the filename, just incase someone wishes to find their way into other
users sessions!

Hope this helps.

Dave.



on 26/9/00 11:47 am, Paul Steven at [EMAIL PROTECTED] wrote:

Hi there

I am making a safety cdrom - that includes a quiz section. This will be run
from a cdrom. Now I would like to let the user store their progress between
sessions so that if they complete half the quiz - they can return at a later
date, enter a login name and password, and carry on where they left off. Now
I believe that if I had been running the quiz from a hard drive I could just
use setPref and getPref - but I think these are not suitable for running
projectors from cdroms - correct me if I am wrong.

So basically I need to write a text file to the users hard drive storing
their progress. I have been looking at FileIO xtra and this looks like it
will do the job. The only thing I can't seem to work out is where to store
this text file so that it can be always found. The only location I seem to
be able to be sure is always known, is the system folder. If I store it
here, is there a way I could create a folder within the system folder to
store it (btw app is Pc and Mac - but a PC solution will do for now). Or if
there is an alternative place to store it please let me know.

One other question: To allow for the possibility of more than one person
using the same machine, I need to ensure it can store separate records for
different users. I was thinking of using their login name and password to
create the text file

e.g     Login: Paul Steven
    Password: Beer

Therefore I would create a text file called PaulStevenBeer.txt

Does this seem a reasonable solution?

Any help on the above questions would be much appreciated.

Thanks

Paul



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to