OPENOUT with a filename

Discussions related to database technologies, file handling, directories and storage
Ivan
Posts: 127
Joined: Tue 07 May 2019, 16:47

OPENOUT with a filename

Post by Ivan »

What is the syntax to this?


project$ = "filename" + "ext"

A=OPENOUT(@usr$+projekt$)


Regards

Ivan
BBC Model B - 1984-1989. 6502 assembler, Unicomal 1988-1994, Some C and C++, Pascal 1990-1994. Bought a copy of BBC-BASIC 2007, but started to program at a daily basis 2019. C++ in 2021.
RichardRussell

Re: OPENOUT with a filename

Post by RichardRussell »

Ivan wrote: Fri 29 May 2020, 09:50 What is the syntax to this?
The extension needs a 'dot' (".ext") but otherwise it's OK:

Code: Select all

      projekt$ = "filename" + ".ext"
      A = OPENOUT(@usr$ + projekt$)
Ivan
Posts: 127
Joined: Tue 07 May 2019, 16:47

Re: OPENOUT with a filename

Post by Ivan »

Thank you.
BBC Model B - 1984-1989. 6502 assembler, Unicomal 1988-1994, Some C and C++, Pascal 1990-1994. Bought a copy of BBC-BASIC 2007, but started to program at a daily basis 2019. C++ in 2021.