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) ?

From "Mayayana" <mayayana@invalid.nospam>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ?
Date 2019-08-16 09:42 -0400
Organization A noiseless patient Spider
Message-ID <qj6bss$7fd$1@dont-email.me> (permalink)
References <qj5qcd$ris$1@gioia.aioe.org>

Show all headers | 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