Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i insert a text file as part of the program

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
i've been trying to insert a txt file into my program. i created the file, refer to it in my program but it keeps on sayin that the file is not there. what do ido?
 
How do you refer to it in your program ?

Like:

dim FileLocation As String

FileLocation = CurDir & "\myfile.txt"

Or what ?
 
generally files are referenced by curdir (the default directory which the vb executes from) & the file name.
if you do not fully qualify (IE: c\mydir\myfileid) you will not locate the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top