File I/O allows programs to read from and write to files. The process involves opening a file using fopen(), reading/writing data using functions like fscanf() and fprintf(), and closing the file using fclose(). Functions like fseek() and ftell() allow random accessing of files by moving the file position indicator. Standard files stdin, stdout, and stderr represent the keyboard, monitor, and error output respectively.