|
ReadValue | ||
IntegerValue = ReadValue(ChannelIndex) | ||
Parameters: ChannelIndex = Index of the file channel to read from |
||
Returns: IntegerValue = The integer value that has been read from this file |
||
The ReadValue function will read the next line of text from an open file channel and return it as an integer value. ReadValue is short hand for the following Result= Val(ReadString$(1)) FACTS: * ReadValue only works with files opened with ReadFile command. * Integer values range from -2147483647 to 2147483647 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 | ReadChr$ | ReadFile | ReadFloat | ReadInt | ReadString$ | ReadValue# | ReadWord : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |