R
roger_owen333
In ASP using PerlScript how do I read and write to files?
I tried:
my $File = $Server->CreateObject("Scripting.FileSystemObject");
my $a = $File->CreateTextFile("c:\\testfile.txt", true);
but the following two lines cause an error???
$a->WriteLine("This is a test.");
$a->Close();
In ASP using JavaScript the following works:
// JScript
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("c:\\testfile.txt", true);
a.WriteLine("This is a test.");
a.Close();
I tried:
my $File = $Server->CreateObject("Scripting.FileSystemObject");
my $a = $File->CreateTextFile("c:\\testfile.txt", true);
but the following two lines cause an error???
$a->WriteLine("This is a test.");
$a->Close();
In ASP using JavaScript the following works:
// JScript
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("c:\\testfile.txt", true);
a.WriteLine("This is a test.");
a.Close();