cat.3

MudOS_0.9.18/doc/efuns/filesystem/cat.3 · 586 B

From the archive MudOS_0.9.18.tar.gz

Download the archive   « Back to the archive contents

.\"output part or all of a file
.TH cat 3
 
.SH NAME
cat() - output part or all of a file
 
.SH SYNOPSIS
int varargs cat( string path, int start, int num );
 
.SH DESCRIPTION
List the file found at <path> to the current player.  The optional arguments
<start> and <num> are the starting line number, and number of lines.
If they are not given, the whole file is printed from the beginning.
.PP
The total number lines will not exceed a system limit, which normally
is 40 lines.
.PP
cat() returns 1 if success, 0 if no such file or no such lines.

.SH SEE ALSO
file_size(3), read_file(3)

Site Stats

Snippets: 1791
Codebases: 571