The sysread method is also used to read the content of a file. With the help of this method you can open a file in any mode.