J
jmazzi
Hey everyone,
Im looking to write a program that will read the file contents of a
file into an array to use later. Ive searched through this list and
seem to only find over bloated programs that do that. Heres a simpe
example of what im talking about:
int main() {
char *conf;
conf = read_config();
printf("%s\n", conf);
return 0;
}
char * read_config(char *filename) {
..........
}
can anyone point me in the right direction?
Thanks!
Im looking to write a program that will read the file contents of a
file into an array to use later. Ive searched through this list and
seem to only find over bloated programs that do that. Heres a simpe
example of what im talking about:
int main() {
char *conf;
conf = read_config();
printf("%s\n", conf);
return 0;
}
char * read_config(char *filename) {
..........
}
can anyone point me in the right direction?
Thanks!