Jump to content

Line wont write to file


 Share

Recommended Posts

Hey guys,

i have a script for getting user passwords from a text doc. and i am working on an "admin" interface for it.

the script is attatched at the bottom.

add the following into a text document called "users.txt" and have it in the same file as the script.

123456FIRSTNAME LASTNAME

234567JOE BLOGS

345678JANE DOE

456789JOHN CITIZEN

567891TEST USER

678912ANOTHER ONE

that will show what the program looks like when it runs.

Press the Esc key to activate the admin mode... i decided against the button, but havent removed it yet.

anyways, when i fill in the form, it should write the data in the same format as above, the last modified time on the text document changes, but the data does not get written...

any ideas? the _FileWriteToLine is called in the _NewUser function at the bottom of the script file.

ICDL_Passwords.au3

Link to comment
Share on other sites

hmm, thats what i first used... but it didnt write to a new line...

i just worked out, if i leave a blank line at the bottom of the file, then the FileWriteLine function will add the text to the bottom of the file and then leave another blank line..

thanks randall.

Edited by tAKTelapis
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...