Namespace spl.file
This namespace contains components for handling files.
To use these components in an SPL program, an explicit use statement is required. For example, "use spl.file::*;".
Functions
- clearerr(uint64): Clear the error and end-of-file indicators for an open file.
- fclose(uint64, int32): Close a file.
- feof(uint64): Test if the stream is at the end of the file.
- fflush(uint64, int32): Flush a file to disk.
- fopen(rstring, rstring, int32): Open a file.
- fopen(ustring, ustring, int32): Open a file.
- fread(list<uint8>, uint64, uint64, int32): Read a list of bytes from a file using binary format.
- freadBin(T, uint64, int32): Read an SPL value from a file using binary format.
- freadLine(uint64, int32): Read a line from a file.
- freadToken(uint64, int32): Read a 'token' from a file.
- freadTxt(T, uint64, int32): Read an SPL value from a file as a text string.
- freadfile(blob, uint64, int32): Read a whole file into a blob as binary.
- fseek(uint64, int64, int32, int32): Set the current file position.
- fstat(rstring, rstring, timestamp, int32): Return timestamp information about a file.
- fstat(rstring, rstring, uint64, int32): Return information about a file.
- fstat(uint64, rstring, timestamp, int32): Return timestamp information about a file.
- fstat(uint64, rstring, uint64, int32): Return information about a file.
- fstat(uint64, ustring, timestamp, int32): Return timestamp information about a file.
- fstat(uint64, ustring, uint64, int32): Return information about a file.
- fstat(ustring, ustring, timestamp, int32): Return timestamp information about a file.
- fstat(ustring, ustring, uint64, int32): Return information about a file.
- ftell(uint64, int32): Return the current file position.
- fwrite(list<uint8>, uint64, uint64, uint64, int32): Write a list of bytes to a file using binary format.
- fwriteBin(T, uint64, int32): Write an SPL value to a file using binary format.
- fwriteString(T, uint64, int32): Write a string to a file.
- fwriteTxt(T, uint64, int32): Write an SPL value to a file as a text string.
- fwriteblob(blob, uint64, int32): Write a blob into a file as binary.
- isEACCES(int32): Return whether the value is EACCES.
- isEAGAIN(int32): Return whether the value is EAGAIN.
- isEBADF(int32): Return whether the value is EBADF.
- isEFAULT(int32): Return whether the value is EFAULT.
- isEFBIG(int32): Return whether the value is EFBIG.
- isEINTR(int32): Return whether the value is EINTR.
- isEINVAL(int32): Return whether the value is EINVAL.
- isEIO(int32): Return whether the value is EIO.
- isEISDIR(int32): Return whether the value is EISDIR.
- isELOOP(int32): Return whether the value is ELOOP.
- isEMFILE(int32): Return whether the value is EMFILE.
- isENAMETOOLONG(int32): Return whether the value is ENAMETOOLONG.
- isENFILE(int32): Return whether the value is ENFILE.
- isENODEV(int32): Return whether the value is ENODEV.
- isENOENT(int32): Return whether the value is ENOENT.
- isENOMEM(int32): Return whether the value is ENOMEM.
- isENOSPC(int32): Return whether the value is ENOSPC.
- isENOTDIR(int32): Return whether the value is ENOTDIR.
- isENXIO(int32): Return whether the value is ENXIO.
- isEOF(int32): Return whether the value is EOF.
- isEOVERFLOW(int32): Return whether the value is EOVERFLOW.
- isEPERM(int32): Return whether the value is EPERM.
- isEPIPE(int32): Return whether the value is EPIPE.
- isEROFS(int32): Return whether the value is EROFS.
- isESPIPE(int32): Return whether the value is ESPIPE.
- isETXTBSY(int32): Return whether the value is ETXTBSY.
- isEWOULDBLOCK(int32): Return whether the value is EWOULDBLOCK.
- mkdir(rstring, uint32, int32): Create a directory
- optSEEK_CUR(): Return the indicator for specifying to seek relative to the current file position.
- optSEEK_END(): Return the indicator for specifying to seek relative to the end of the file.
- optSEEK_SET(): Return the indicator for specifying to seek relative to the start of the file.
- remove(rstring, int32): Remove a file or directory.
- remove(ustring, int32): Remove a file or directory.
- rewind(uint64): Set the current file position to the start of the file.