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


Groups > comp.sys.acorn.programmer > #2048

Re: Over 256 Character BASIC string

From "Ste (news)" <steve@revi11.plus.com>
Subject Re: Over 256 Character BASIC string
Newsgroups comp.sys.acorn.programmer
Date 2012-08-10 14:23 +0100
Message-ID <52bd11e180steve@revi11.plus.com> (permalink)
References <d5c1f8b752.Kevin@talktalk.net> <52b806d0dcchrisjohnson+news@spamcop.net> <f72f8ab852.Kevin@talktalk.net> <52bd111261steve@revi11.plus.com>
Organization None

Show all headers | View raw


In article <52bd111261steve@revi11.plus.com>,
   Ste (news) <steve@revi11.plus.com> wrote:
>   PROC`parse_file_long(123, "#", file_name$)

I should've mentioned that "#" is the character to look for when ignoring a
line that is a comment. Just use "" if the file you are parsing doesn't have
this sort of thing.

Also note (for reasons of laziness), this routine _does_ load the whole file
into RAM so won't be able to cope with arbitrarily-sized files, but should
be able to cope with arbitrarily-sized lines.

Final note, any of LF, CR or NULL are treated as a line terminator.

Thanks,

Steve

-- 
Steve Revill @ Home
Note: All opinions expressed herein are my own.

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Over 256 Character BASIC string Kevin Wells <kev@kevsoft.co.uk> - 2012-07-31 16:48 +0100
  Re: Over 256 Character BASIC string Chris Johnson <chrisjohnson+news@spamcop.net> - 2012-07-31 19:22 +0100
    Re: Over 256 Character BASIC string "David Holden" <SpamBin@apdl.co.uk> - 2012-08-01 07:27 +0000
      Re: Over 256 Character BASIC string Chris Johnson <chrisjohnson+news@spamcop.net> - 2012-08-01 10:52 +0100
    Re: Over 256 Character BASIC string Kevin Wells <kev@kevsoft.co.uk> - 2012-08-01 19:17 +0100
      Re: Over 256 Character BASIC string jgh@arcade.demon.co.uk - 2012-08-01 20:41 -0700
      Re: Over 256 Character BASIC string Chris Johnson <chrisjohnson+news@spamcop.net> - 2012-08-02 10:39 +0100
        Re: Over 256 Character BASIC string Kevin Wells <kev@kevsoft.co.uk> - 2012-08-04 18:56 +0100
          Re: Over 256 Character BASIC string Steve Drain <steve@kappa.me.uk> - 2012-08-04 19:56 +0100
            Re: Over 256 Character BASIC string Kevin Wells <kev@kevsoft.co.uk> - 2012-08-08 15:04 +0100
              Re: Over 256 Character BASIC string jgh@arcade.demon.co.uk (Jonathan Graham Harston) - 2012-08-08 23:15 +0100
                Re: Over 256 Character BASIC string Kevin Wells <kev@kevsoft.co.uk> - 2012-08-09 15:14 +0100
      Re: Over 256 Character BASIC string Gavin Wraith <gavin@wra1th.plus.com> - 2012-08-02 18:35 +0100
        Re: Over 256 Character BASIC string Kevin Wells <kev@kevsoft.co.uk> - 2012-08-04 18:58 +0100
      Re: Over 256 Character BASIC string Steve Drain <steve@kappa.me.uk> - 2012-08-03 10:37 +0100
      Re: Over 256 Character BASIC string "Ste (news)" <steve@revi11.plus.com> - 2012-08-10 14:15 +0100
        Re: Over 256 Character BASIC string "Ste (news)" <steve@revi11.plus.com> - 2012-08-10 14:23 +0100
          Re: Over 256 Character BASIC string Kevin Wells <kev@kevsoft.co.uk> - 2012-08-13 19:19 +0100
  Re: Over 256 Character BASIC string druck <news@druck.org.uk> - 2012-07-31 22:20 +0100
  Re: Over 256 Character BASIC string Duncan Moore <duncan.moore@gmx.com> - 2012-08-03 02:11 -0700

csiph-web