Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12252
| Path | csiph.com!weretis.net!feeder6.news.weretis.net!feeder7.news.weretis.net!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | "Mayayana" <mayayana@invalid.nospam> |
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: file.ReadAll - another quirk |
| Date | Thu, 21 Nov 2019 15:04:25 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 24 |
| Message-ID | <qr6ql2$6v3$1@dont-email.me> (permalink) |
| References | <qr39i0$1rne$1@gioia.aioe.org> <nnvg6lcw8zs0$.lzm0ik3jt3ww$.dlg@40tude.net> <qr6p71$21l$1@gioia.aioe.org> |
| Injection-Date | Thu, 21 Nov 2019 20:04:50 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="e430e8a241dfec70e1451443a1ffda06"; logging-data="7139"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MB6HHLl4Fz1ljTGQCxxI8duisObXytn4=" |
| Cancel-Lock | sha1:m8kPXtGdAtdz5OS44A8BS2CW9oc= |
| 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:12252 |
Show key headers only | View raw
"R.Wieser" <address@not.available> wrote | Than explain to me why it can stop exactly at the end of /any/ contents, no | matter how short or long, but is too stupid to detect a string-length of | zero. That simply does not make any sense. | Actually, as we've found before, it doesn't seem to do that. It assumes content without checking the file size. Then it reads until it hits a null. I assume it's using API like CreateFile/ReadFile (or maybe VC++ functions) to get the file into a string. Then it sees the end of the string as the first null, unless given a specific string length to return. I think all you can do is say, "Thanks, Scripting Guys!" As I understand it, they're the bright bulbs who were tasked with creating scrrun *and wrote it in VC6++!*. So it's a Windows system library but it has to load the VC6++ runtime.
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar
file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-20 12:54 +0100
Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-20 08:39 -0500
Re: file.ReadAll - another quirk JJ <jj4public@vfemail.net> - 2019-11-22 00:00 +0700
Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-21 12:50 -0500
Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-21 20:39 +0100
Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-21 15:04 -0500
Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-21 21:46 +0100
Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-21 16:31 -0500
Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-22 09:23 +0100
Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-22 09:14 -0500
Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-22 15:58 +0100
Re: file.ReadAll - another quirk JJ <jj4public@vfemail.net> - 2019-11-22 19:13 +0700
Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-22 15:47 +0100
Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-22 10:10 -0500
Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-22 18:37 +0100
Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-22 18:40 -0500
Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-23 09:19 +0100
Re: file.ReadAll - another quirk "Mayayana" <mayayana@invalid.nospam> - 2019-11-23 10:09 -0500
Re: file.ReadAll - another quirk "R.Wieser" <address@not.available> - 2019-11-23 17:36 +0100
Re: file.ReadAll - another quirk JJ <jj4public@vfemail.net> - 2019-11-22 19:10 +0700
csiph-web