fgetl
Read line from file, removing newline characters
Syntax
Description
Examples
Input Arguments
Tips
fgetl
reads characters using the encoding scheme associated with the file. To specify the encoding scheme, usefopen
.When
fgetl
encounters the ASCII characters in the order0A 0D
, which are a line feed followed by a carriage return, it will read them as a single ASCII newline character.To read lines from a file while keeping newline characters, use
fgets
.