ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

readRandomLine

File.readRandomLine(filename)

Parameters

filename Path of file to read from.

Returns

A random line from the file as a string.

Description

Reads and returns a random line from the file, which starts from the end of one line and ends at the next endline character. This function does not affect the read position of the file.