|
|
| ReadString$ | ||
| String$ = ReadString$(ChannelIndex) | ||
| Parameters: ChannelIndex = Index of the file channel to read from |
||
| Returns: String$ = The string that has been read from this file |
||
The ReadString$ function will read the next string from an open file channel. The ReadString$ function expects to read strings that are terminated with a carriage return. This is perfect for reading individual lines of text from a text file created with notepad for example. FACTS: * ReadString$ only works with files opened with ReadFile command. * ReadString$ expects the string it's loading to be terminated with a carriage return. ASC characters (10 & 13) 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$ | ReadChrAt$ | ReadFile | ReadFloat | ReadInt | ReadStringAt$ | ReadValue | ReadWord : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |