tAKTelapis Posted August 21, 2006 Share Posted August 21, 2006 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 More sharing options...
randallc Posted August 21, 2006 Share Posted August 21, 2006 Hi. If it just adding to the end of the file, why not "FileWriteLine($File, $NewUserLine)"? Randall ("_FileWriteToLine" is to replace or insert a line by number in the file) ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
tAKTelapis Posted August 21, 2006 Author Share Posted August 21, 2006 (edited) 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 August 21, 2006 by tAKTelapis Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now