You must be logged in to do that.

FileReadByte

FileReadByte
int FileReadByte(int file)

Documentation

Pass a handle to a file opened in read mode, and returns the integer value of the byte at the current position, and moves the position onto the next byte. The returned number will always between 0 to 255.

Example Usage

int file = FileOpen("readme.txt", FILE_READ);
Log(str(FileReadByte(file)));
FileClose(file);
// This read the first byte and logs the value
// First line is "Welcome to VERGE 3! " so logs
// The number '87' which is the value of 'W' in ascii
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.