back to Table of Contents


FileToBuf (sub)

This subroutine will load the entire contents of the given file into the specified buffer. The given buffer does not need to be initialized yet, as this call includes the required init procedure. However, it will not hurt, if the buffer is already initialized or even used and filled with data. But note, that in this case all previous content of the buffer is discarded and replaced by the loaded file data.

The call will also clear all markers and find data. The current buffer position is set to the first byte and the buffer will use the OS native line endings.


SYNTAX:

FileToBuf buf$(), fileSpec$

INPUTS:

buf$() (STRING array)

fileSpec$ (STRING)


NOTES:


back to Table of Contents