FileIO Object

Description

Performs useful file input and output functions, such as loading a whole file and saving a string or Blob to file.

There are two sets of functions, one for strings and another for Blob objects

Methods

LoadFile

LoadFileBinary

SaveFile

SaveFileBinary

Example

Set fi = CreateObject("Toolsack.FileIO")
 
t = fi.LoadFile("C:\temp\atextfile.txt")
fi.SaveFile "C:\temp\copy of atextfile.txt", t, True
 
Set b = fi.LoadFileBinary("C:\temp\abinaryfile.gif")
fi.SaveFileBinary "C:\temp\copy of abinaryfile.gif", b, True
 

Samples

Web Server - Uses Socket Classes to create a simple web server.

Dynamic Images - As ASP page as an IMG SRC sends an image chosen at random.

Articles



We always want to hear your feedback. Send to feedback@toolsack.com.
© 2000-2001 Toolsack Software Ltd.