# File Read

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-files/file-read
>
> Reads a chunk or a line from a text file opened with File Open; returns error -512 at the end of the file.

Read data from a specified text file.

Action available for the following operating systems:

![OS Supported: Android, iOS, Win, Win32](https://doc.sysdevmobile.com/kalipso/assets/images/01_Supported_OS-5c02a51fd5080a410a07ee3ef72b6872.png)

### Parameters

* **File ID** _\<numeric> -_ The identification to the file that the user wants to read. The File ID used in a previous [Open File](https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-files/file-open.md) action.
* **Target** _\<unquoted string> -_ The control or variable to save the readed data from file.
* **Details** _\<radiobox>_
  * **Read Chunck and Length** _\<numeric> -_ If the user wants to read a chunck of data from the file, he must indicate the number of characters to he wants to read.
  * **Read Line and End Line Chars** _\<string> -_ If the user wants to read a line of the file, he must indicate the end characters of each file line.
* **Coded** _\<unquoted string> -_ Defines if the readed data is being coded or not. If user chooses YES to this parameter, values between '<' and '>' are considered to be the ASCII value and will be converted to the respective char, otherwise nothing happens.

:::info
When the end of the file is reached this action generates an error. In this case, the ERRORCODE can be compared to -512 to know if the error is due to an end of file.
:::
