<-- Previous || Up || Next -->

File To String Function
File Operations Class

Public Function FileToString( _
    ByVal vFileName As Variant _
    ) As Variant

Read a file, returning its contents as a String.
Function returns Null upon failure.

    ? StringToFile("Something.", "Debug.Tmp")
    ? FileToString("Debug.Tmp")
    ? FileToString("ZZ:!@#")
See also:
    StringToFile Function
    AppendStringToFile Function
    FormatFileTable Function
    ClipboardToString Function
vFileName: Name of the file whose contents will be returned as a String. Function returns Null if vFileName is Null or cannot be fixed-up to a String. Function also returns Null if there is an error, such as when the file does not exist or cannot be read.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.