Write an AmigaBasic() class object to a file in its binary format.
Arguments
- x
The
AmigaBasic()class object that needs to be stored.- file
A
characterstring specifying the file location to whichx(anAmigaBasic()object) needs to be written.
Details
This function encodes the Amiga Basic code in its binary format
(using as.raw()) and writes it to a file. The file
can also be stored onto a virtual Amiga disk
(adf_file_con()).
See also
Other AmigaBasic.operations:
AmigaBasic,
AmigaBasic.reserved(),
AmigaBasicBMAP,
[.AmigaBasic(),
as.AmigaBasic(),
as.AmigaBasicBMAP(),
as.character(),
check.names.AmigaBasic(),
names.AmigaBasic(),
rawToAmigaBasic(),
rawToAmigaBasicBMAP(),
read.AmigaBasic(),
read.AmigaBasicBMAP()
Other io.operations:
read.AmigaBasic(),
read.AmigaBasicBMAP(),
read.AmigaBasicShape(),
read.AmigaBitmapFont(),
read.AmigaBitmapFontSet(),
read.AmigaIcon(),
read.SysConfig(),
read.iff(),
write.AmigaBasicShape(),
write.AmigaBitmapFont(),
write.AmigaIcon(),
write.SysConfig(),
write.iff()
Examples
## First create an AmigaBasic object:
bas <- as.AmigaBasic("PRINT \"hello world!\"")
## write to tempdir:
write.AmigaBasic(bas, file.path(tempdir(), "helloworld.bas"))