|
ReadChr$ | ||
String$ = ReadChr$(ChannelIndex, Length) | ||
Parameters: ChannelIndex = Index of the file channel to read from Length = The number of characters to read |
||
Returns: String$ = The string that has been read from this file |
||
The ReadChr$ function will read a fixed number of characters from an open file channel. You can also make it read a zero terminated string, by setting the Length parameter to zero. FACTS: * ReadChr$ only works with files opened with ReadFile command. * Setting the Length parameter to zero, will make ReadChr$ read a Zero terminated string. 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 | ReadByte | ReadChrAt$ | ReadFile | ReadFloat | ReadInt | ReadString$ | ReadValue | ReadValue# | ReadWord : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |