---
url: /process-functions/csvreader-iseof.md
description: Returns a boolean.
---

# CSVReader » isEOF

Returns a boolean. Returns true if there is no more lines of the csv file to be read. Returns false if there are more lines to read.

#### Parameters

No parameters

#### Example

```js
let csv = datasource.csvRead("example_file.csv");
while(!csv.isEOF()) { 
    let line = csv.read(); 
    console.log(line);
}
```

:::tip
This will log all lines of the csv file into the console in a JSON format.
:::
