| read.AmigaBasic | R Documentation |
Read an AmigaBasic() script from its binary format.
read.AmigaBasic(file, ...)
file |
A |
... |
Currently ignored |
Normally Amiga Basic code is stored encoded in a binary format
(rawToAmigaBasic()).
This function reads the binary data from a file (which can be
stored on a virtual disk (adf_file_con()))
and converts in into an AmigaBasic() class objec.
Returns an AmigaBasic() class object read from the file.
Pepijn de Vries
Other AmigaBasic.operations:
AmigaBasic.reserved(),
AmigaBasicBMAP,
AmigaBasic,
[.AmigaBasic(),
as.AmigaBasicBMAP(),
as.AmigaBasic(),
as.character(),
check.names.AmigaBasic(),
names.AmigaBasic(),
rawToAmigaBasicBMAP(),
rawToAmigaBasic(),
read.AmigaBasicBMAP(),
write.AmigaBasic()
Other io.operations:
read.AmigaBasicBMAP(),
read.AmigaBasicShape(),
read.AmigaBitmapFontSet(),
read.AmigaBitmapFont(),
read.AmigaIcon(),
read.SysConfig(),
read.iff(),
write.AmigaBasicShape(),
write.AmigaBasic(),
write.AmigaBitmapFont(),
write.AmigaIcon(),
write.SysConfig(),
write.iff()
## First create an AmigaBasic file
write.AmigaBasic(as.AmigaBasic("PRINT \"Hello world\""),
file.path(tempdir(), "helloworld.bas"))
## Now let's read the same file:
bas <- read.AmigaBasic(file.path(tempdir(), "helloworld.bas"))
## There's also a demo file included with the package
demo.bas <- read.AmigaBasic(system.file("demo.bas", package = "AmigaFFH"))
demo.bas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.