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

Path csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From "Mayayana" <mayayana@invalid.nospam>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: Finally found it! A seekable file stream
Date Wed, 9 Mar 2022 09:01:56 -0500
Organization A noiseless patient Spider
Lines 32
Message-ID <t0ac1b$bcp$1@dont-email.me> (permalink)
References <8yrub5dio333.di58abv72sye$.dlg@40tude.net>
Injection-Date Wed, 9 Mar 2022 14:02:19 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="ff36719f6f66cda72e4d6d3e0e8cd93f"; logging-data="11673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Pt1DGoPVPJqnPI1StOmjIxlaRHE2ve5E="
Cancel-Lock sha1:EYWN5wzYBpNPlYZBw+V9TRfE/lw=
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader Microsoft Outlook Express 6.00.2900.5512
X-Priority 3
X-MSMail-Priority Normal
Xref csiph.com microsoft.public.scripting.vbscript:12432

Show key headers only | 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