Top "Getline" questions

A C function that reads an entire line from a stream.

How do I properly free memory related to getline() function?

I just started programming and have a beginner question, I want to write a function to read a file with …

c pointers dynamic-memory-allocation getline
The role of std::ws (whitespace) when reading data

Data saved in my file is (white spaces added at both beginning and end on purpose for this test): 1 2 3 Loading …

c++ whitespace getline stringstream istringstream
Read and remove first (or last) line from txt file without copying

I wanna read and remove the first line from a txt file (without copying, it's a huge file). I've read …

c++ fstream getline stdstring boost-interprocess
getline() with a file descriptor instead of a file pointer

To my knowledge, there is no libc equivalent to getline() that works with a file descriptor instead of working with …

c posix getline libc