BGETC

c = BGETC (fileN)

Reads and returns a byte from file or device in binary mode.

See BPUTC for writing bytes to a file or device.

Example

' create a binary file
open "BinaryFile.txt" for output as #1

for c = 0 to 255
    bputc #1, c
next

close #1

' open binary file and print content
open "BinaryFile.txt" for input as #1

for i = 0 to 255
    c = bgetc(1)
    print CHR(c);
next

close #1
Code samples using BGETC
File
If there is insufficient information on this page and you wish learn more about BGETC, please send an email to smallbasic@gmail.com. You can help to improve information about BGETC by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.