Hot answers tagged

2 votes

Is there an API to read file content?

Drupal implements access to managed files through stream wrappers. So you can access files using native PHP functions as follows. file_get_contents('public://some/public/file.txt'); file_get_contents('...
ya.teck's user avatar
  • 5,624

Only top scored, non community-wiki answers of a minimum length are eligible