|
-
April 24th, 2003, 09:03 PM
#5
Junior Member
Try this with Active X
You'll need to have Active X enabled in order to read the file though.
All you'll have to do is change the name and/or location of the file called "your_file.txt" below.
I hope this helps!
// This creates a new Active X Object in order to read in a file.
// Refer to the new variable as "file"
file = new ActiveXObject("Scripting.FileSystemObject");
// Sets the variable "f" to equal the new open file contents
f = file.OpenTextFile("c:\\your_file.txt", 1);
// This reads in a single line
line = f.ReadLine();
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
|
|