Stata 15 help for fileread
[FN] Programming functions
Description: the contents of the file specified by f
If the file does not exist or an I/O error occurs while
reading the file, then "fileread() error #" is returned,
where # is a standard Stata error return code.