|
-
Dec 15th, 2000, 03:15 PM
#1
Thread Starter
Addicted Member
any1 know how i could get the text of an unopened text file into a string?
for example, i have a bunch of text files in my C: drive and i want to make my program read what these text files have in them, how would i go about doing that?
-
Dec 15th, 2000, 04:22 PM
#2
In order to read the file, you must open it.
-
Dec 15th, 2000, 06:06 PM
#3
To read a text file into a string, but as Megatron said, you must open it first.
Code:
Dim MyString As String
Open "C:\MyTextFile.txt" For Input As #1
MyString = Input(LOF(1), 1)
Close #1
Hope that helps.
-
Dec 15th, 2000, 07:06 PM
#4
Thread Starter
Addicted Member
Thanx you guys, you are so good to me!!
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
|