public void Copy() { var character = _source.ReadChar(); while (character != '\n') { _destination.WriteCharacter(character); character = _source.ReadChar(); } }
public void Copy() { //initialise with a default character char temp = _source.ReadChar(); while (temp != '\n') { _destination.WriteCharacter(temp); temp = _source.ReadChar(); } }