IsolatedStorageFileStream.ReadByte 메서드

정의

격리된 스토리지의 IsolatedStorageFileStream 개체에서 싱글바이트를 읽습니다.

public:
 override int ReadByte();
public override int ReadByte ();
override this.ReadByte : unit -> int
Public Overrides Function ReadByte () As Integer

반환

Int32

격리된 스토리지 파일에서 읽은 부호 없는 8비트 정수 값입니다.

예제

다음 코드 예제에서는 메서드를 ReadByte 사용하여 개체에서 IsolatedStorageFileStream 데이터를 읽는 방법을 보여 줍니다. 이 예제의 전체 컨텍스트는 개요를 참조하세요 IsolatedStorageFileStream .

Console::WriteLine( "Writing data to the new file." );
while ( source->Position < source->Length )
{
   inputChar = (Byte)source->ReadByte();
   target->WriteByte( (Byte)source->ReadByte() );
}

// Determine the size of the IsolatedStorageFileStream
// by checking its Length property.
Console::WriteLine( "Total Bytes Read: {0}", source->Length.ToString() );
Console.WriteLine("Writing data to the new file.");
while (source.Position < source.Length)
{
    inputChar = (byte)source.ReadByte();
    target.WriteByte(inputChar);
}

// Determine the size of the IsolatedStorageFileStream
// by checking its Length property.
Console.WriteLine("Total Bytes Read: " + source.Length);
Console.WriteLine("Writing data to the new file.")
While source.Position < source.Length
    inputChar = CByte(source.ReadByte())
    target.WriteByte(inputChar)
End While

' Determine the size of the IsolatedStorageFileStream
' by checking its Length property.
Console.WriteLine(("Total Bytes Read: " & source.Length))

적용 대상