# File control block

Every file on the system has a special frame attached to
it called a file control block or FCB. These frames contain information
about the file, including index pointers and their compiled (algebraic)
processing codes, the file D-pointer information for editing, pointers,
and workspace used by the system when calling FlashBASIC subroutines
from file dictionaries.

Also contained in this file control block are important
flags and fields indicating that the file is open, closed, in the
process of being deleted, and so on. This provides the ability to
protect the system from potentially disastrous situations, such as
the case of one process deleting a file when another process is using
it.

## See also

- [account-save command](https://d3codex.com/tcl/account-save-command/)
- [clear-file command](https://d3codex.com/tcl/clear-file-command/)
- [close statement](https://d3codex.com/pickbasic-flashbasic/close-statement/)
- [common statement](https://d3codex.com/pickbasic-flashbasic/common-statement/)
- [delete-file command](https://d3codex.com/tcl/delete-file-command/)
- [FCB](https://d3codex.com/definitions/fcb/)
- [File-defining items](https://d3codex.com/definitions/file-defining-items/)
- [File-of-files file (VME)](https://d3codex.com/systemfiles/file-of-files-file-vme/)
- [file-save command](https://d3codex.com/tcl/file-save-command/)
- [list-file-stats command](https://d3codex.com/tcl/list-file-stats-command/)
- [move-file command](https://d3codex.com/tcl/move-file-command/)
- [open statement](https://d3codex.com/pickbasic-flashbasic/open-statement/)
- [save command](https://d3codex.com/tcl/save-command/)
- [steal-file command](https://d3codex.com/tcl/steal-file-command/)

---
Source: https://d3codex.com/definitions/file-control-block/ - part of the D3Codex reference.
