Opens the designated file in the specified mode.
FUNCTION Text_IO.Fopen
(spec VARCHAR2,
filemode VARCHAR2)
RETURN Text_IO.File_Type;
Parameter | Description | ||||||
---|---|---|---|---|---|---|---|
spec | A case-insensitive string corresponding to a file's name. | ||||||
filemode |
A single case-insensitive character that specifies the mode in which
to open the file, and consists of one of the following characters:
|
A handle to the specified file.
/*
** Declare two local variables to represent two files:
** one to read from, the other to write to.
*/
in_file Text_IO.File_Type;
out_file Text_IO.File_Type;
in_file := Text_IO.Fopen('salary.txt', 'r');
out_file :=
Text_IO.Fopen('bonus.txt', 'w');