PureBasic - File
Overview
Files are the main way of storage for nowadays computers. With PureBasic they are managed in very simple and optimized way. Any number of files can be handled at the same time. This library use buffered functions to increase the writing/reading speed. All the file functions can handle huge files (up to 2^64 bytes), if the filesystem supports it.
For large amounts of data it can be useful to load the data into an array or a linked list, even using a memory block can be a good idea.
To get valid file paths for reading/saving data, take a look to the FileSystem and Requester libraries.
Command Index
CloseFile
CreateFile
Eof
FileBuffersSize
FileID
FileSeek
FlushFileBuffers
IsFile
Loc
Lof
OpenFile
ReadByte
ReadCharacter
ReadData
ReadDouble
ReadFile
ReadFloat
ReadLong
ReadQuad
ReadString
ReadStringFormat
ReadWord
WriteByte
WriteCharacter
WriteData
WriteDouble
WriteFloat
WriteLong
WriteQuad
WriteString
WriteStringFormat
WriteStringN
WriteWord
Example
File.pb
Supported OS
All