Hi all,

Currently i developing a system which require me to create a log file.

My code is working but I need to enhance it make the log file folder create automatically bcoz right now i have to create the folder manually in the debug folder.

Here is my code:

FileOpen(1, (Application.StartupPath & "\Log\" & lotno & ".txt"), OpenMode.Append)
PrintLine(1, "Start Time : ", Now())
PrintLine(1, "Lot Number : ", lotno)
PrintLine(1, "Test Software : ", title)
PrintLine(1, "Staff ID : ", operID)
PrintLine(1,
PrintLine(1, "")
FileClose(1)

Hope someone can help me