| Object: | BinaryStream |
| Syntax: | ReadVarAll () |
| Returns: | An array of variants |
| Description: | This method reads the entire contents of the file into an array of variants. This allows you to manipulate individual bytes within a script. |
![]() |
For performance purposes, it is not recommended that you read large files into memory on a Web Server, as this may significantly tax server resources. |
Set oFM = CreateObject("SoftArtisans.FileManager")
Set oBS = oFM.OpenBinaryFile( fileName )
dim a
dim b
a = oBS.ReadVarAll
b = Chr(a(1))
oBS.Close
Set oFM = nothing
| Previous Page | Next Page |