read_file.3

MudOS_0.9.18/doc/efuns/filesystem/read_file.3 · 602 B

From the archive MudOS_0.9.18.tar.gz

Download the archive   « Back to the archive contents

.\"read a file into a string
.TH read_file 3

.SH NAME
read_file() - read a file into a string

.SH SYNOPSIS
string read_file(string file, int start_line, int number_of_lines);

.SH DESCRIPTION
Read a line of text from a file into a string.  The second and third
arguments are optional.  If only the first argument is specified, the
entire file is returned (as a string).
.PP
The start_line is the line number of the line you wish to read.  This routine
will return 0 if you try to read past the end of the file, or if you try to
read from a nonpositive line.

.SH SEE ALSO
log_file(3), write_file(3).

Site Stats

Snippets: 1791
Codebases: 571