Print Page | Close Window

Writing binary files

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: ASP.NET Discussion
Forum Description: Discussion and chat on ASP.NET related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=11953
Printed Date: 28 March 2026 at 6:01am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Writing binary files
Posted By: Diep-Vriezer
Subject: Writing binary files
Date Posted: 26 September 2004 at 9:08am
Hi, I have a piece of hexadecimal code, which I want to write to a file. How can I do this?

-------------
Gone..



Replies:
Posted By: Mart
Date Posted: 26 September 2004 at 10:25am
Imports System.IO

Dim bw As New BinaryWriter(File.OpenWrite("C:\xxx.exe"))
bw.Write([byte], [start], [length]
bw.Close

- That should work



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net