my question is how would I change the program below so that it takes a file descriptor number on the command line rather tha开发者_StackOverflow社区n a file name?Any help would be greatly appreciated.
I have a Linux file descriptor (from socket), and I want to read one line. How to do it in开发者_如何学运维 C++?I you are reading from a TCP socket you can\'t assume when the end of line will be reach