Parameters & Returns
Parameters
Returns
Quick Summary
Reads a line of text from a file.
Takes a file handle.
Returns the line without the newline character, or an empty string if the handle is invalid.
Technical Exegesis...
Reads characters from the file until a newline character ('\\n') is encountered or end of file is reached. Returns the line without the newline character. Returns an empty string if the handle is invalid.
Automatically skips carriage return ('\\r') characters, making it compatible with both Windows (CRLF) and Unix (LF) line endings. Useful for reading text files line by line.