---
title: standardInput
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/filehandle/standardinput
---

# standardInput

The file handle associated with the standard input file.

## Declaration

```swift
class var standardInput: FileHandle { get }
```

## Return Value

Return Value The shared file handle associated with the standard input file.

## Discussion

Discussion Conventionally this is a terminal device on which the user enters a stream of data. There’s one standard input file handle per process; it’s a shared instance. When using this method to create a file handle object, the file handle owns its associated file descriptor and is responsible for closing it.

## See Also

### Related Documentation

- [init(fileDescriptor:)](foundation/filehandle/init(filedescriptor:).md)

### Getting a file handle

- [standardError](foundation/filehandle/standarderror.md)
- [standardOutput](foundation/filehandle/standardoutput.md)
- [nullDevice](foundation/filehandle/nulldevice.md)
