Sign in to follow this  
Followers 0
z0mgItsJohn

FileWriteLine / FileWrite (Help Please)

8 posts in this topic

#1 ·  Posted (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 by John2006

Latest Projects :- New & Improved TCP Chat

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Are you opening this file first? :)

$file = FileOpen("test.txt", 1)

Edited by Uriziel01

Share this post


Link to post
Share on other sites

You don't need to open the file first.

FileWriteLine ("Log " & _NowDate() & ".txt", "Log - Test" )

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

hehe :) ops :) My fault, i have dont lookd that he forgothen add the .txt end :)

Edited by Uriziel01

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by John2006

Latest Projects :- New & Improved TCP Chat

Share this post


Link to post
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
Sign in to follow this  
Followers 0