Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #12432

Re: Finally found it! A seekable file stream

From "Mayayana" <mayayana@invalid.nospam>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: Finally found it! A seekable file stream
Date 2022-03-09 09:01 -0500
Organization A noiseless patient Spider
Message-ID <t0ac1b$bcp$1@dont-email.me> (permalink)
References <8yrub5dio333.di58abv72sye$.dlg@40tude.net>

Show all headers | View raw


"JJ" <jj4public@gmail.com> wrote

|
| 
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms722561(v=vs.85)
|
| The object is meant for handling WAV audio files, but it also support raw
| format or formatless.
|

  I'm curious what it is you're trying to accomplish with
byte data that needs to be done in VBS. You can pretty
much do what you like with FSO, as long as you don't have
a DBCS codepage on the local system. (Chinese, Korean,
or Japanese) You just need to work with the file as ANSI,
which is default. I've done things like brightening a bitmap
using nothing more than Textstream. Of course it's slow,
since it's dealing with variants, but VBS is not the tool for
speed, anyway.

  The WSH designers thought that WSH would be used by
admins who only need file ops to do things like read or
write logs, so they made Textstream a simplifed, non-binary
access. But it still works. All files are binary. There are just
special considerations to deal with a null. For example, you
can read a file in using Read(filelen) but if you use ReadAll
it will be snipped at the first null. The WSH designers were
surprisingly sloppy. I suppose that at the time it was just a
seat-of-the-pants GUI update to DOS that they figured would
only be needed by a few people.

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Finally found it! A seekable file stream JJ <jj4public@gmail.com> - 2022-03-09 13:04 +0700
  Re: Finally found it! A seekable file stream "Mayayana" <mayayana@invalid.nospam> - 2022-03-09 09:01 -0500
    Re: Finally found it! A seekable file stream "R.Wieser" <address@not.available> - 2022-03-09 16:58 +0100
      Re: Finally found it! A seekable file stream "Mayayana" <mayayana@invalid.nospam> - 2022-03-09 12:07 -0500
    Re: Finally found it! A seekable file stream JJ <jj4public@gmail.com> - 2022-03-10 12:33 +0700

csiph-web