Index: libcfa/src/iostream.cfa
===================================================================
--- libcfa/src/iostream.cfa	(revision f2898df1db5cd1f1673c3aaa39bc475f81adb6e2)
+++ libcfa/src/iostream.cfa	(revision 3db78b894ae3be5dacb95d3d43fd6c10d981cd5e)
@@ -1076,5 +1076,5 @@
 			} // if
 			// FIX ME: CFA strings need to be modified to NOT change the argument for this case, then this can be removed.
-			if ( rwd > 0 && args == 0 ) f.s[0]= '\0';	// read failed => no pattern match => set string to null
+			if ( ! f.flags.ignore && rwd > 0 && args == 0 ) f.s[0]= '\0';	// read failed => no pattern match => set string to null
 		} else {
 			if ( f.flags.delimiter ) {					// getline
@@ -1114,5 +1114,5 @@
 				} // if
 			} // if
-			if ( rwd > 0 && args == 0 ) f.s[0]= '\0';	// read failed => no pattern match => set string to null
+			if ( ! f.flags.ignore && rwd > 0 && args == 0 ) f.s[0]= '\0';	// read failed => no pattern match => set string to null
 		} // if
 		if ( args == 1 && eof( is ) ) {					// data but scan ended at EOF
