Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  123
Language: C/C++
Code:
using System;
using System.IO;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            FileStream fs = new FileStream(@"C:test.bmp", FileMode.Open, FileAccess.Read);
            BinaryReader r = new BinaryReader(fs);
            foreach (byte b in r.ReadBytes((int)r.BaseStream.Length))
            {
                Console.Write(b);
                Console.Write(' ');
            }
            Console.ReadKey();
        }
    }
}
          
Comments: