How can I communicate with the parallel port in C#?

  • Thread starter Thread starter Guest
  • Start date Start date
.... And once you have the Handle, you can pass into one of the constructors
of the FileStream object and then do the usual stream I/O:

FileStream lpt = new
FileStream(hFS,System.IO.FileMode.Append,FileAccess.Write);
String Temp="test";
Byte[] Buff = new Byte[1024];
Buff = System.Text.Encoding.Unicode.GetBytes(Temp);
lpt.Write(Buff,0,Buff.Length);
lpt.Close();

Sujit D'Mello
 
Back
Top