incbin is still fuzzy

BlitzMax Forums/BlitzMax Programming/incbin is still fuzzy

plash(Posted 2008) [#1]
Trying to output an incbinned .exe, so far all the things I've tried the read stream is always null..

IncBin "in.exe"

  Local str_grabber:TStream = ReadStream("incbin::in.exe")
  Local str_grsize:Int = IncBinLen("in.exe")
  
  Local stw_grabber:TStream = WriteFile("out.exe")
  
	CopyStream(str_grabber, stw_grabber, str_grsize)
	
   str_grabber.Close()
   stw_grabber.Close()


EDIT: I also tried using read/write bytes - no luck there either, str_grabber is still always null.
Tried Readfile("incbin::in.exe") as well.


Brucey(Posted 2008) [#2]
If you are using Framework, you will need to Import BRL.RamStream

:-)


plash(Posted 2008) [#3]
Doh! :/

ty.


Dreamora(Posted 2008) [#4]
Highly recommended behavior: don't touch framework till you are finished. Once you are finished, use the Framework assistant