z0mgItsJohn Posted February 8, 2008 Share Posted February 8, 2008 (edited) Hello AutoIt Peoples ! Well I'm Making A Computer Log To Tell Me When A User Logs In And Time Date Etc.. Well When I Use (FileWriteLine) Or (FileWrite) I Would Like To Make The Title (Log - Date) Well When I Use... #Include <Date.au3> FileWriteLine ("Log " & _NowDate (), "Log - Test" ) It Dose Not Write The File For Some Reason.. And I Have Tried (FileWrite) And I Get The Same Thing.. If You Can Please Help Me :3 ~Thanks~ Ill Check In Like Every 3 Mins Lol... Edited February 8, 2008 by John2006 Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
Uriziel01 Posted February 8, 2008 Share Posted February 8, 2008 (edited) Are you opening this file first? $file = FileOpen("test.txt", 1) Edited February 8, 2008 by Uriziel01 Link to comment Share on other sites More sharing options...
JustinReno Posted February 8, 2008 Share Posted February 8, 2008 You don't need to open the file first. FileWriteLine ("Log " & _NowDate() & ".txt", "Log - Test" ) Link to comment Share on other sites More sharing options...
Uriziel01 Posted February 8, 2008 Share Posted February 8, 2008 (edited) hehe ops My fault, i have dont lookd that he forgothen add the .txt end Edited February 8, 2008 by Uriziel01 Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted February 8, 2008 Author Share Posted February 8, 2008 You don't need to open the file first. FileWriteLine ("Log " & _NowDate() & ".txt", "Log - Test" ) ... Still Nothing! Thanks Anyway.. Please Continue To Help ~Thanks~ For Trying Same For Uriziel01 Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted February 8, 2008 Author Share Posted February 8, 2008 (edited) Hmm.. I Thank I Got It.. You Can't Have "/" In (FileWrite) Or (FileWriteLine) And.. In (Date.au3) The Function (_DateNow) Has 3 "/"s In It.... :3 Well If Any One Knows How To Get Around That Please Help... Edited February 8, 2008 by John2006 Latest Projects :- New & Improved TCP Chat Link to comment Share on other sites More sharing options...
picaxe Posted February 8, 2008 Share Posted February 8, 2008 (edited) Try #Include <Date.au3> ConsoleWrite("Return=" & FileWriteLine ("Log " & StringReplace(_NowDate (), "/", "-") & ".txt", "Log - Test" ) & @LF) on sucess return=1 Edited February 8, 2008 by picaxe Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted February 8, 2008 Author Share Posted February 8, 2008 I Guess That Works Too ! Thanks~ Latest Projects :- New & Improved TCP Chat 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