PureBasic - File

Overview

Files are the main way of storage for nowadays computers. With PureBasic you manage them 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.

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.

If you're thinking how you can get valid file paths for reading/saving data, take a look at the FileSystem and Requester libraries.

Command Index

CloseFile
CreateFile
Eof
FileSeek
IsFile
Loc
Lof
OpenFile
ReadByte
ReadData
ReadFile
ReadFloat
ReadLong
ReadString
ReadWord
UseFile
WriteByte
WriteData
WriteFloat
WriteLong
WriteString
WriteStringN
WriteWord

Example

File.pb

Supported OS

All

Reference Manual - Index