Added helper functions for file manipulation

This commit is contained in:
2023-04-04 08:07:08 -05:00
parent f3f66297c2
commit d0c624e319

11
file_helpers.h Normal file
View File

@@ -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);