|
WriteChr | ||
WriteChr ChannelIndex, String$, Length | ||
Parameters: ChannelIndex = Index of the file channel your writing to String$ = The String the characters you'll be writing Length = The number of characters to write. Use Length of zero to write null terminated string |
||
Returns: NONE | ||
The WriteChr command will write a fixed number of characters to an open file channel. You can make it write a zero terminated string, by setting the Length parameter to zero. FACTS: * WriteChr only works with files opened with WriteFile command. * Setting the Length parameter to zero, will make WriteChr write a Zero terminated string. These are strings that have a 0 Byte saved at the end. 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.
|
Related Info: | CloseFile | ReadFile | WriteByte | WriteChrAt | WriteFloat | WriteInt | WriteString | WriteWord : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |