Classi
File
Un File rappresenta un riferimento a un file del sistema.
Mostra l'originale in inglese
A File represents an entry to a system file.
26 propri
Costruttori 1
Funzioni statiche 9
- CreateDirectory Creates a Directory (for every folder passed)
- Exists Verifies if a entry exists in the file system
- GetDirectories Gets a list of all directories given a path
- GetFiles Gets a list of all files in a directory
- GetFullPath Gets the full path given a relative path based on the current side (client or server)
- IsDirectory Checks if a path is a directory
- IsRegularFile Checks if a path is a file
- Remove Deletes a folder or file
- Time Returns when a file was last modified in Unix time
Funzioni 16
- Close Closes the file and destroys the entity
- Flush Flushes content to the file
- HasFailed Checks if the last operation has Failed
- IsBad Checks if the file status is Bad
- IsEOF Checks if the file status is End of File
- IsGood Checks if the file status is Good
- Read Reads characters from the File and returns it. Also moves the file pointer to the latest read position. Pass 0 to read the whole file
- ReadAsync Reads characters from the File asynchronously.
- ReadJSON Reads the whole file as a JSON and returns it.
- ReadJSONAsync Reads the whole file as a JSON and returns it asynchronously.
- ReadLine Reads and returns the next file line
- Seek Sets the file pointer to a specific position
- Size Returns the size of the file
- Skip Skips n (amount) positions from the current file pointer position
- Tell Returns the current file pointer position
- Write Writes the Data at the current position of the file