Subroutine Name

FileToString

Explanation and Usage

This subroutine reads a file in to a string variable. It internally calls FileToArray, and returns the array joined by "\n".

Syntax

FileToString(FileName)

Options

FileName - The file you are trying to retrieve, including the full path.

Examples

These are actual examples from the Aneuch source code:

my $blocked = FileToString($BlockedList);
In this example, the $BlockedList file is read in and returned to the variable $blocked.

← Return to API listing