|
-
January 13th, 2000, 10:46 AM
#1
include a txt file
Hi,
Is it possible to "include" a txt file, let's say test.txt in my project.
I'm now opening a file for reading with:
Open "C:\project\program\test.txt" for input as #1
But I want to be able to open the file for reading without specifying to whole path, but just specify the filename only.
I'm asking this because my project will be copied several times and every time in a different directory.
Open "C:\project1\program\test.txt" for input as #1
Open "C:\project2\program\test.txt" for input as #1
Open "C:\project3\program\test.txt" for input as #1
When my project becomes very large with multiple files to be opened, I don't want to get errors and change the pathnames everytime for all the files.
Does anyone have I solution how I can handle this problem?
Thanx,
Maarten
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
|