From c7ec29b2d6a66700933ede6ae2371e1d54744d67 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 30 May 2017 19:05:43 +0300 Subject: Add ifdstream::read_text() and ifdstream::read_binary() --- tests/fdstream/driver.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/fdstream/driver.cxx') diff --git a/tests/fdstream/driver.cxx b/tests/fdstream/driver.cxx index c8748b1..41a39b0 100644 --- a/tests/fdstream/driver.cxx +++ b/tests/fdstream/driver.cxx @@ -37,8 +37,7 @@ static const string text3 ("ABCDEF\r\nXYZ"); static string from_stream (ifdstream& is) { - string s; - getline (is, s, '\0'); + string s (is.read_text ()); is.close (); // Not to miss failed close of the underlying file descriptor. return s; } -- cgit v1.1