---
name: "PX_open_file"
section: "3"
platform: "linux"
package: "pxlib-dev"
version: "0.6.9-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PX_open_file"
---

# PX\_open\_file(3)

read a Paradox file

## NAME

PX\_open\_file — read a Paradox file

## SYNOPSIS

\#include \<paradox.h\>

int PX\_open\_file(pxdoc\_t \*pxdoc, const char \*filename)

## DESCRIPTION

Opens a Paradox file with the given filename. pxdoc must be created  before with [PX\_new(3)](/PX_new/3.md) or [PX\_new2(3)](/PX_new2/3.md).

## RETURN VALUE

Returns 0 on success and -1 on failure.

## SEE ALSO

[PX\_new2(3)](/PX_new2/3.md), [PX\_new(3)](/PX_new/3.md), [PX\_open\_fp(3)](/PX_open_fp/3.md), [PX\_open\_gsf(3)](/PX_open_gsf/3.md)

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
