scorpin
06-10-2004, 01:32 PM
how would i read a *.raw file into a byte array?
raw to arrayscorpin 06-10-2004, 01:32 PM how would i read a *.raw file into a byte array? Iceplug 06-10-2004, 01:36 PM Not sure what a raw file is and what makes it different, but you can open the file for binary, redim a dynamic byte array to (0 To LOF(filenum) - 1) and then use Put to put the whole file into a byte array. Don't forget to Close the file. :) scorpin 06-10-2004, 01:48 PM a *raw file is just pixel data, a bmp per say without a header or any formating scorpin 06-10-2004, 01:57 PM how do i use the put statement? i cant find it Iceplug 06-10-2004, 03:57 PM Erm, nevermind, you need to use the BinaryReader. Dim FS As FileStream = New FileStream(Filename, etc. etc.) Dim BR As BinaryReader = New BinaryReader(FS) Then use BR.ReadBytes() :). scorpin 06-10-2004, 04:44 PM yup... found that a few minutes ago. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum