コード例 #1
0
ファイル: Copier.cs プロジェクト: Pierre35557/CharacterCopy
        public void Copy()
        {
            var character = _source.ReadChar();

            while (character != '\n')
            {
                _destination.WriteCharacter(character);
                character = _source.ReadChar();
            }
        }
コード例 #2
0
        public void Copy()
        {
            //initialise with a default character
            char temp = _source.ReadChar();

            while (temp != '\n')
            {
                _destination.WriteCharacter(temp);
                temp = _source.ReadChar();
            }
        }