|
-
Dec 13th, 1999, 01:08 AM
#1
Use the VB File Functions, Open.. For.. As.., eg.
Code:
Dim iFile As Integer
iFile = FreeFile
Open "C:\TheFile.txt" For Input As iFile
Input #iFile, sWebURL
Close iFile
Msgbox "The URL is " & sWebURL
If the file contains more than one bit of information, you would continue to use the Input# function until EOF(iFile) is True indicating the End of the File has been Reached.
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
[This message has been edited by Aaron Young (edited 12-13-1999).]
-
Dec 13th, 1999, 04:43 AM
#2
New Member
Thanks this worked great. However how do i code the path to the file so it will be relative to my exe file?
-
Dec 13th, 1999, 07:05 AM
#3
The App.Path Property will contain the Directory Path from which your Application was launched.
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
-
Dec 13th, 1999, 12:58 PM
#4
New Member
Hi all
i need to read a file which will contain some varibles e.g a web address. How do i open the file read in the web address and put this address into a varible? The file it will open is a plain text file only containing on line which id the web address.
[email protected]
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
|