BairesDev Interview Question

how would you read a file from the filesystem?