How would I call the C library routine fgets() ? char *fgets(char *s, int size, FILE *stream); My problem is with the first argument. I am not sure what to declare and how to pass it. I tried doing it as you would in C, but it doesn't compile.