#include <stdio.h> // Standard input output (which includes file input output)
char buff[255]; // Liable for buffer overflows if mishandled
filepath = fopen("./test.txt", "w+"); // Opens a text file for both reading and writing
fprintf(filepath, "Lorem ipsum dolor sit amet,\n");
fputs("consectetur adipiscing elit,\n", filepath);
filepath = fopen("./test.txt", "r");
fscanf(filepath, "%s", buff); // fscanf will read until it encounters a space
fgets(buff, 255, filepath); // fgets will read from current pointer position until it encounters a end of line
fgets(buff, 255, filepath); // fgets in this instance will read the entire second line