You must be logged in to do that.

FileReadLn

FileReadLn
string FileReadLn(int file)

Documentation

Pass a handle to a file opened in read mode, and it reads bytes from the file as ascii and returns a string. It starts reading at the current position in the file, and stops when it reaches a new line marker. The current position in the file is incremented to the start of the next line.

Example Usage

int file = FileOpen("README.TXT", FILE_READ);
FileSeekPos(file, 1, SEEK_CUR);
Log(FileReadLn(file));
FileClose(file);
// If you have the same verge readme in the directory
// This will write the string below in the v3.log file
// "elcome to VERGE 3! "
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.