# %fdopen() function

The *%fdopen()* function associates a
stream with the file.descriptor obtained from an %open(), %dup(), or %creat().

## Syntax

```
stream = (char*)%fdopen(file.descriptor, type)
```

## See also

- [%fclose() function](https://d3codex.com/pickbasic-flashbasic/percent-fclose-function/)
- [%fopen() function](https://d3codex.com/pickbasic-flashbasic/percent-fopen-function/)
- [%freopen() function](https://d3codex.com/pickbasic-flashbasic/percent-freopen-function/)
- [FlashBASIC C functions overview](https://d3codex.com/pickbasic-flashbasic/flashbasic-c-functions-overview/)
- [cfunction statement](https://d3codex.com/pickbasic-flashbasic/cfunction-statement/)

---
Source: https://d3codex.com/pickbasic-flashbasic/percent-fdopen-function/ - part of the D3Codex reference.
