That is correct, but that's what a user can do interactively from the keyboard, with no pre-existing basic program in basic.
For his problem, he wants a running basic program to read and write a .ba file. How could you have a basic program that loads a .ba file, without overwriting it's own self and immediately crashing to the ground? I don't think there is any such thing as "load file.ba, offsetting all line numbers +5000 along the way", then later "save lines 5000-10,000 to foo.ba, offsetting all line numbers -5000 along the way" That said... teeny is an assemby program, which can manipulate .ba files. But teeny itself is created from a .ba program...so, it *seems* it really only depends just how Rube Goldberg you want to get, and just how much ram you are willing to spend on embedding a data-encoded assembly program into the basic program, just so it can be unpacked, used, and removed. ;) On Thu, Apr 6, 2017 at 8:24 PM, Bryan Ard <bryan....@gmail.com> wrote: > If you have a .do file and you load it from basic, if you save it, it will > save as a .ba file. Or am I completely not remembering how this works? > > On Thu, Apr 6, 2017 at 6:48 PM, Ron Lauzon <rlau...@gmail.com> wrote: > >> Ya, that's what I want to do. The .ba I want to write was originally >> read from the same box. So I know it's a valid .ba file. >> >> I just don't know how "special" they are (sort of like the >> restrictions on the .co files). >> >> >> On Thu, Apr 6, 2017 at 5:30 PM, MikeS <dm...@torfree.net> wrote: >> > Assuming that a .BA file is really what you want and depending on the >> details of your project maybe you could write a .DO file and then convert >> it, perhaps using the keyboard buffer? >> > >> > m >> > >> > ----- Original Message ----- >> > From: "Ron Lauzon" <rlau...@gmail.com> >> > To: "Model 100 Discussion" <m100@lists.bitchin100.com> >> > Sent: Thursday, April 06, 2017 5:25 PM >> > Subject: Re: [M100] Writing to a .ba file >> > >> > >> >> That's what I figured. Oh, well. One more limit as to what project >> can do. >> >> >> >> Thanks. >> >> >> >> >> >> On Thu, Apr 6, 2017 at 4:33 PM, Ken Pettit <petti...@gmail.com> wrote: >> >>> Hi Ron, >> >>> >> >>> TS-DOS and Teeny can do it because they are assembly programs, not >> BASIC >> >>> programs. From BASIC, you can only open .DO (ASCII Text) files. >> >>> >> >>> Ken >> >>> >> >>> On 4/6/17 1:09 PM, Ron Lauzon wrote: >> >>>> >> >>>> Can anyone point me to information about how to open a .ba file for >> >>>> writing? >> >>>> >> >>>> My latest project is rather successful, but when I try to >> >>>> >> >>>> open "file.ba" for output as #1 >> >>>> >> >>>> I get an error. Based on the research I've done so far, writing to a >> >>>> .ba file is not something that they want you to do, but I know it can >> >>>> be done (because TS-DOS and Teeny can do it). >> >>>> >> >>> >> >> >> >> >> >> >> >> -- >> >> Ron Lauzon - rlauzon at acm dot org >> >> Homepage: http://webpages.charter.net/rlauzon/ >> >> Weblog: http://ronsapartment.blogspot.com/ >> >> >> >> DNRC: Lord of All Things That Are Fattening >> >> >> >> "To be sure, conservative radio talk show hosts have a built-in >> >> audience unavailable to liberals: People driving cars to some >> >> sort of job." - Ann Coulter >> >> >> >> Microsoft Free since July 06, 2001 >> >> Running Ubuntu 16.04 >> >> >> >> -- >> Ron Lauzon - rlauzon at acm dot org >> Homepage: http://webpages.charter.net/rlauzon/ >> Weblog: http://ronsapartment.blogspot.com/ >> >> DNRC: Lord of All Things That Are Fattening >> >> "To be sure, conservative radio talk show hosts have a built-in >> audience unavailable to liberals: People driving cars to some >> sort of job." - Ann Coulter >> >> Microsoft Free since July 06, 2001 >> Running Ubuntu 16.04 >> > >