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


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

Re: Over 256 Character BASIC string

From Kevin Wells <kev@kevsoft.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Over 256 Character BASIC string
Date 2012-08-04 18:56 +0100
Organization Aioe.org NNTP Server
Message-ID <55d213ba52.Kevin@talktalk.net> (permalink)
References <d5c1f8b752.Kevin@talktalk.net> <52b806d0dcchrisjohnson+news@spamcop.net> <f72f8ab852.Kevin@talktalk.net> <52b8de9a49chrisjohnson+news@spamcop.net>

Show all headers | View raw


In message <52b8de9a49chrisjohnson+news@spamcop.net>
          Chris Johnson <chrisjohnson+news@spamcop.net> wrote:

>In article <f72f8ab852.Kevin@talktalk.net>,
>   Kevin Wells <kev@kevsoft.co.uk> wrote:
>> Yes please, the trouble is I don't know how long the line will be,
>> as what the application does is download the latest Euro Millions
>> results that are a csv file, and display the latest 11 draws one
>> line at a time.
>
>The first questions are
> - how are you downloading the data?

Wget and saving it to Scrap, the application is registered.

> - How do you know how much data there is to fetch?

I don't it is about 50 odd lines.
> - Does it go into a buffer in memory, or to a file on disc?
> - If the former, are you fetching one line at a time, or does it all
>   come at once?

I use an OPENIN to read the file and an A$=GETS# to access it as a
string.
>
>Memory is relatively cheap on modern machines - a DIM of say 8000 is
>not excessive if that is the way to go. Once you have the data block
>in memory, it is easy to step through the data one byte at a time
>looking for commas for end of cell and control characters (LF, CR,
>even NULL) to signify end of line.

I already go through it one character at a time looking for commas and
speech marks, so that looks like the way to go, I take it that the
A$=GETS# would be the bit that needs changing.
>
>If you want more detailed help, it would be better to take it to
>private email. My posting address is valid for first contact.
>


-- 
Kev Wells  http://riscos.kevsoft.co.uk/
http://kevsoft.co.uk/   http://kevsoft.co.uk/AleQuest/
ICQ 238580561
So many beers so little time.

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