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


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

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

From JJ <jj4public@vfemail.net>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: openttextfile ForAppend ignores EOF (Ctrl-Z) ?
Date 2019-08-19 02:19 +0700
Organization albasani.net
Message-ID <1x0t3hl78ew97$.f2wq83qlqbd0.dlg@40tude.net> (permalink)
References <qj5qcd$ris$1@gioia.aioe.org> <46zjervaz47j.rwvgybco10xy$.dlg@40tude.net> <qj6vjq$sdn$1@dont-email.me>

Show all headers | View raw


On Fri, 16 Aug 2019 15:18:37 -0400, Mayayana wrote:
> 
>   I don't think I've ever even tried Skip or SkipLine.
> It seems so much more efficient to just read the whole
> thing in and then deal with it as a string. If I need to
> separate lines I just do a Split.
>   The only time I don't use ReadAll is when I'm treating
> it as a binary file. Then I use Read(file length).
> 
>  With VB it's similar. Reading or writing a file to disk
> is incredibly fast. Working with strings is incredibly
> fast. The only thing that's slow is concatenation. For
> that I use arrays and Join.

It's slow for accessing partial data of big files where the needed data is
at offset 100MB+. Also, the Skip() method works more like Read() rather than
simply changing the file pointer, because it took more than a second to
Skip() 100MB+ characters.

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