|
-
May 15th, 2000, 12:02 AM
#1
Thread Starter
Hyperactive Member
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
-
May 15th, 2000, 12:05 AM
#2
Thread Starter
Hyperactive Member
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.
-
May 15th, 2000, 12:08 AM
#3
Prefix both the name of the file that you read and write with
App.Path & "\"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|