Yep. So reading the manual index would have led you to filesystem functions, Dooh!. Then reading the function list descriptions would have led to file get contents where it tells you about fopen. Likewise strings. Really.
Now understand. No one knows everything about any language or operating system, etc. The real talent is in being able to find out what you need to know when you need to know it.