dcsimg
September 25, 2020
Hot Topics:

Writing Active Server components in Visual Basic

  • By Thornton Rose
  • Send Email »
  • More Articles »

ASCExample Tester


Class FileIO

Usage: set o = Server.CreateObject("ASCExample.FileIO")

Methods:

  • help() - shows help
  • fileSize(strName) - returns size of named file
  • fileExists(strName) - returns True if named file exists
  • deleteFile(strName) - deletes named file
  • appendLine(strName, strLine) - appends line to file

strLogFileName = c:\temp\test.log
fileExists() => True
fileSize() => 17 bytes

File deleted.
fileExists() => False [end]





Page 2 of 3



This article was originally published on April 30, 1998

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.


Thanks for your registration, follow us on our social networks to keep up-to-date