Write an AmigaBasicShape() class object to a file in its binary format.
Arguments
- x
 The
AmigaBasicShape()class object that needs to be stored.- file
 A
characterstring specifying the file location to whichx(anAmigaBasicShape()object) needs to be written.
Details
This function coerces the Amiga Basic Shape into 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 AmigaBasicShape.operations:
AmigaBasicShape,
rasterToAmigaBasicShape(),
read.AmigaBasicShape()
Other io.operations:
read.AmigaBasic(),
read.AmigaBasicBMAP(),
read.AmigaBasicShape(),
read.AmigaBitmapFont(),
read.AmigaBitmapFontSet(),
read.AmigaIcon(),
read.SysConfig(),
read.iff(),
write.AmigaBasic(),
write.AmigaBitmapFont(),
write.AmigaIcon(),
write.SysConfig(),
write.iff()
Examples
filename <- system.file("ball.shp", package = "AmigaFFH")
ball     <- read.AmigaBasicShape(filename)
write.AmigaBasicShape(ball, file.path(tempdir(), "ball.shp"))