-
This code :
-----
Public Sub DebugFile(str As String)
Dim DFile As Integer
DFile = FreeFile
Open "dbg.txt" For Append As #DFile
Print #DFile, str
Close #DFile
End Sub
-----
seems to write to either the current directory, or into the dir i installed vb into... why? how do i make it write into the current directory always?
a
-
actually, looks like it puts it in a different place depending on whether you run the project from within the vb ide, or create an .exe!
a.
-
Prefix both the name of the file that you read and write with
App.Path & "\"