Creating an empty stream?

BlitzMax Forums/BlitzMax Programming/Creating an empty stream?

JoshK(Posted 2006) [#1]
I would like to create a stream and copy a bank to it, without actually having any file on the hard drive or internet. How do I do this? If I just use New TStream, I get errors saying the stream is not writable.

Assuming this is possible, would reading from a stream be any slower than reading from a bank?


tonyg(Posted 2006) [#2]
Can't use use CreateBankStream or maybe CreateRamStream?


JoshK(Posted 2006) [#3]
CreateBankStream is perfect.