|
WriteFile | ||
WriteFile Filename$, ChannelIndex | ||
Parameters: Filename$ = The name of the file you wish to write data to ChannelIndex = Index of the file channel to use |
||
Returns: NONE | ||
WriteFile opens a file for write access. The command requires both the filename to create for writing, and a file channel index for use with subsequent writing commands (ie WriteByte WriteWord,WriteInt etc etc. Files can be accessed both sequentially and randomly. However, a file can NOT be read, when opened with WriteFile Sequential Access Sequential file access, is when you step through the file in order. In other words, you start writing at the start of the file, and continue writing data to it from start until your finnished. Never stepping backward or skipping forward. Random Access Random file access, is where you can jump around through the file, writing one section, then perhaps jumping back or skipping forward. So your randomly buildingg parts of file. This is often invaluable when you need to write data sections out of order. FACTS: * Files Opened with WriteFile can not be read. Mini Tutorial: This example creates a simple file with some various bits of data store in it, then read it's back again.
This example would output.
|
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |