---
name: "sc_StateInFile"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_StateInFile"
---

# sc\_StateInFile(3)

Reads state information from a file.

## NAME

sc::StateInFile - Reads state information from a file.

## SYNOPSIS

`#include <state_file.h>`

Inherits **sc::StateIn**.

Inherited by **sc::StateInBin**, and **sc::StateInText**.

### Public Member Functions

**StateInFile** ()\
 State information will be obtained from cin.  **StateInFile** (std::istream &s)\
 State information will be obtained from fp.  **StateInFile** (const char \*name)\
 State information will be obtained from name.  virtual int **open** (const char \*name)\
 State information will be obtained from name.  virtual void **close** ()\
 Close the output file.

### Protected Attributes

int **opened\_**\
 std::streambuf \* **buf\_**\

### Additional Inherited Members

## Detailed Description

Reads state information from a file.

## Member Function Documentation

### virtual int sc::StateInFile::open (const char \* name)` [virtual]`

State information will be obtained from name.

Reimplemented in **sc::StateInBin**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
