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


Groups > linux.debian.user > #199018

Re: yabasic problem

From Curt <curty@free.fr>
Newsgroups linux.debian.user
Subject Re: yabasic problem
Date 2018-08-19 16:30 +0200
Message-ID <wowSm-2pb-7@gated-at.bofh.it> (permalink)
References <wovCW-1KV-7@gated-at.bofh.it> <wow5Y-1Uj-3@gated-at.bofh.it> <wowpk-20K-27@gated-at.bofh.it>
Organization Unorganized

Show all headers | View raw


On 2018-08-19, Richard Owlett <rowlett@cloud85.net> wrote:
>> 
>> I tried to look up their online documentation, but it's one of
>> those stupid javascript-only sites, and I tend to avoid that.
>> Attention economy? I can play that: they won't get mine.
>
> So somebody agrees with me.
> A well done HTML manual is in the Debian package.
> Thanks
>

I glanced at some doc and your manner of creating a variable is rather
opinionated.

You can test for successful file opening thusly:

 if (not open(#1,"test.dat","r")) print "Can't open the file!"

Opening test.dat in the current directory, reading and printing its
contents, which are:

 one two three 
 four five 
 six seven eight nine

code:

 open 1,"test.dat","r" 
 while(!eof(1))
  input #1 a$ 
  line input b$ 
  print "a$=\"",a$,"\", b$=\"",b$,"\"" 
 wend

To create a variable (and then open and read that):

 a=open("foo")
 input #a a$

I ain't no programmer, but sure is butt ugly.

-- 
"She was a blank wall, fresh painted." 
Louise Erdrich, Love Medicine

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

yabasic problem Richard Owlett <rowlett@cloud85.net> - 2018-08-19 15:10 +0200
  Re: yabasic problem <tomas@tuxteam.de> - 2018-08-19 15:40 +0200
    Re: yabasic problem Richard Owlett <rowlett@cloud85.net> - 2018-08-19 16:00 +0200
      Re: yabasic problem Curt <curty@free.fr> - 2018-08-19 16:30 +0200
        Re: yabasic problem "Thomas Schmitt" <scdbackup@gmx.net> - 2018-08-19 17:10 +0200
          Re: yabasic problem David Wright <deblis@lionunicorn.co.uk> - 2018-08-20 01:30 +0200
            Re: yabasic problem "Thomas Schmitt" <scdbackup@gmx.net> - 2018-08-20 09:40 +0200
              Re: yabasic problem Jim Popovitch <jim@k4vqc.com> - 2018-08-20 10:00 +0200
              Re: yabasic problem Richard Owlett <rowlett@cloud85.net> - 2018-08-20 14:20 +0200
                Re: yabasic problem Mark Fletcher <mark27q1@gmail.com> - 2018-08-20 14:40 +0200
                Re: yabasic problem Richard Owlett <rowlett@cloud85.net> - 2018-08-20 15:40 +0200
                Re: yabasic problem "Thomas Schmitt" <scdbackup@gmx.net> - 2018-08-20 15:30 +0200
                Re: yabasic problem Greg Wooledge <wooledg@eeg.ccf.org> - 2018-08-20 15:40 +0200
                Re: yabasic problem "Thomas Schmitt" <scdbackup@gmx.net> - 2018-08-20 16:00 +0200
                Re: yabasic problem Richard Owlett <rowlett@cloud85.net> - 2018-08-20 18:10 +0200
                Re: yabasic problem "Thomas Schmitt" <scdbackup@gmx.net> - 2018-08-20 19:50 +0200
              [OT] Re: yabasic problem David Wright <deblis@lionunicorn.co.uk> - 2018-08-20 17:10 +0200
                Re: yabasic problem "Thomas Schmitt" <scdbackup@gmx.net> - 2018-08-20 18:50 +0200
      Re: yabasic problem Richard Owlett <rowlett@cloud85.net> - 2018-08-20 14:00 +0200
        Re: yabasic problem <tomas@tuxteam.de> - 2018-08-20 17:20 +0200
          Re: yabasic problem Richard Owlett <rowlett@cloud85.net> - 2018-08-20 21:40 +0200
  Re: yabasic problem "Thomas Schmitt" <scdbackup@gmx.net> - 2018-08-19 15:50 +0200

csiph-web