---
name: "open_read"
section: "3diet"
platform: "linux"
package: "libowfat-dev"
version: "0.28-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/open_read/3diet"
---

# open\_read(3diet)

open a file for reading

## NAME

open\_read - open a file for reading

## SYNTAX

**#include \<open.h\>**

int **open\_read**(const char \**filename*);

## DESCRIPTION

open\_read opens the file *filename* for reading and returns the file handle.  If there was an error opening the file, open\_read returns -1 and sets errno accordingly.

## SEE ALSO

[open(2)](/open/2.md)
