This section provides a tutorial example on using stat() to return many statistics of the specified file, including file size, creation time, and last modification time.
Instead of using individual file test operators, you can use the stat() function
to return a number of statistics of a file. The following tutorial program shows you
how to use stat():