You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
511 B
C#
23 lines
511 B
C#
5 years ago
|
/*
|
||
|
* C# Program to Read Data from Stream and Cast Data to Chars
|
||
|
*/
|
||
|
using System;
|
||
|
using System.IO;
|
||
|
public sealed class Program
|
||
|
{
|
||
|
public static void Main()
|
||
|
{
|
||
|
using (Stream s = new FileStream(@"c:\sri\srip.txt", FileMode.Open))
|
||
|
{
|
||
|
int read;
|
||
|
while ((read = s.ReadByte()) != -1)
|
||
|
{
|
||
|
Console.Write("{0} ", (char)read);
|
||
|
}
|
||
|
Console.ReadLine();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
G O O D M O R N I N G
|