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


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

Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ?

Path csiph.com!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: openttextfile ForAppend ignores EOF (Ctrl-Z) ?
Date Fri, 16 Aug 2019 09:42:08 -0400
Organization A noiseless patient Spider
Lines 29
Message-ID <qj6bss$7fd$1@dont-email.me> (permalink)
References <qj5qcd$ris$1@gioia.aioe.org>
Injection-Date Fri, 16 Aug 2019 13:42:52 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="b657f124c9c1883021eb22daa285fdf6"; logging-data="7661"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3yMEcmCP+iE66+3R04pFL3DQYC0c3m50="
Cancel-Lock sha1:ZtCJQZGxphg0bWXePSXbSz+K6yw=
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:12172

Show key headers only | View raw


"R.Wieser" <address@not.available> wrote

| Currently I've changed the script to a read all -> strip EOF -> append
| content -> write all sequence, but would like to know if I can just, you
| know, /append/ to the file.
|
  I had never heard of that and had to look it up:

https://en.wikipedia.org/wiki/Substitute_character

  It seems that tradition was ended many years ago and
that using Chr(26) to mark the end of a file is not likely
to be recognized but most software or by Windows. Since
the WSH was written late 20th century, I guess it uses
the "modern" standard. :) Which makes me wonder how you
got a Chr(26) into the file in the first place. You've been
ending files with Ctl+Z all these years and didn't notice
that it didn't do what you expected?

  According to wikipedia, Chr(26) is now used as a substitute
character, for characters that can't be rendered. When I
wrote a file ending with Chr(26) it showed up with a square
at the end. If I use Ctl + Z in Notepad it only selects text.
And that's 18 year old, XP Notepad. How did you not notice
all of that? (You might also be interested to know that you
can no longer buy hay for your horse on the town common.
Why? Beats me. The world's gone crazy. :) 

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


Thread

openttextfile ForAppend ignores EOF (Ctrl-Z) ? "R.Wieser" <address@not.available> - 2019-08-16 10:43 +0200
  Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ? "Mayayana" <mayayana@invalid.nospam> - 2019-08-16 09:42 -0400
    Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ? "R.Wieser" <address@not.available> - 2019-08-16 18:11 +0200
      Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ? "Mayayana" <mayayana@invalid.nospam> - 2019-08-16 13:21 -0400
        Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ? "R.Wieser" <address@not.available> - 2019-08-16 20:08 +0200
    Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ? "R.Wieser" <address@not.available> - 2019-08-16 19:16 +0200
  Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ? JJ <jj4public@vfemail.net> - 2019-08-17 01:13 +0700
    Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ? "Mayayana" <mayayana@invalid.nospam> - 2019-08-16 15:18 -0400
      Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ? JJ <jj4public@vfemail.net> - 2019-08-19 02:19 +0700
        Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ? "Mayayana" <mayayana@invalid.nospam> - 2019-08-18 16:25 -0400
          Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ? "Wendelin Uez" <wuez@online.de> - 2019-09-28 19:18 +0200
            Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ? "Mayayana" <mayayana@invalid.nospam> - 2019-09-28 14:47 -0400

csiph-web