Added helper functions for file manipulation

master
Aadhavan Srinivasan 2 years ago
parent f3f66297c2
commit d0c624e319

@ -0,0 +1,11 @@
/* Takes a string that represents a filename, and converts the contents
of the file into a string */
char* file_to_string(char* filename);
/*Finds the number of new-line characters in the given file */
int num_of_lines(char* filename);
Loading…
Cancel
Save