We help IT Professionals succeed at work.

how to create a file on specific path..?

i am using following code to build a file on App.path

but now i want to build files on specific path.. like D:\ABC\xyz

iFileNo = FreeFile
Open csvflname For Output As #iFileNo
    Print #iFileNo, csvdata
Close #iFileNo
'''''''''''''''''''''''''''''''

Open in new window

Comment
Watch Question

Retired
Top Expert 2012
Commented:
csvflname = "D:\ABC\xyz\myfile.txt"

iFileNo = FreeFile
Open csvflname For Output As #iFileNo
    Print #iFileNo, csvdata
Close #iFileNo