Files can contain text or binary data and are accessed using file pointers. Basic file operations include opening, reading, writing, and closing files. Functions like fopen(), fclose(), fgetc(), fputc(), fprintf(), and fscanf() allow reading from and writing to files. The ftell() and fseek() functions get and set the file pointer position. Preprocessors are used to process source code before compilation.