Title: POMO_FileReader::read
Published: April 25, 2014
Last modified: May 20, 2026

---

# POMO_FileReader::read( int $bytes ): string|false

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/pomo_filereader/read/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/classes/pomo_filereader/read/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/pomo_filereader/read/?output_format=md#source)

[ Back to top](https://developer.wordpress.org/reference/classes/pomo_filereader/read/?output_format=md#wp--skip-link--target)

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/pomo_filereader/read/?output_format=md#parameters)󠁿

 `$bytes`intrequired

## 󠀁[Return](https://developer.wordpress.org/reference/classes/pomo_filereader/read/?output_format=md#return)󠁿

 string|false Returns read string, otherwise false.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/pomo_filereader/read/?output_format=md#source)󠁿

    ```php
    public function read( $bytes ) {
    	return fread( $this->_f, $bytes );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/pomo/streams.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/pomo/streams.php#L188)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/pomo/streams.php#L188-L190)

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fpomo_filereader%2Fread%2F)
before being able to contribute a note or feedback.