• Home
  • Reviews
  • Articles
  • News
  • Tools
  • GamingHeaven
  • Forums
  • Network
 

Go Back   DriverHeaven.net > Forums > Software / Tools > Programming, Coding, (Web)Design

Notices

Reply
 
LinkBack Thread Tools
Old Jan 2, 2006, 08:26 PM   #1
DriverHeaven Newbie
 
Join Date: Aug 2005
Posts: 9
Rep Power: 0
complete is on a distinguished road

reading and writing binary data with a file in VB

In Visual Basic 6 I have written a program to read and write to a file. It works fine. Now I have to do the same for binary data since the information I write to the file has end-of-line and return characters. For instance, when I write to the file, the data looks like this:

"3
34"

Because there is a break in the data. In debug mode, the text data has two boxes where the end-of-line and return characters go.

Anyway, does anyone have any example code of binary level reading and writing to and from a file?
complete is offline   Reply With Quote


Old Jan 4, 2006, 06:31 AM   #2
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,256
Rep Power: 0
UberLord is on a distinguished road

http://www.vb-helper.com/howto_read_...nary_file.html
UberLord is offline   Reply With Quote
Old Jun 11, 2006, 12:17 PM   #3
DriverHeaven Newbie
 
Join Date: Jun 2006
Posts: 1
Rep Power: 0
mm1854 is on a distinguished road

Great example.

Do you also have it in VB.NET?
mm1854 is offline   Reply With Quote
Old Jul 11, 2006, 11:33 AM   #4
A Legend in Underwear
 
UberLord's Avatar
 
Join Date: May 2002
Location: Unknown
Posts: 5,256
Rep Power: 0
UberLord is on a distinguished road

Sure!

http://www.ondotnet.com/pub/a/dotnet...4/streams.html
UberLord is offline   Reply With Quote
 

 
Powered by: vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
vBulletin implementation by Craig '5320' Humphreys

All times are GMT -5. The time now is 10:13 AM. Copyright ©2008 HeavenMedia.net