Graphical representation of files and directories (icons) are stored as
separate files (with the .info extension) on the Amiga. This function writes
AmigaIcon()
class objects to such files.
Arguments
- x
An
AmigaIcon()
class object.- file
A
character
string representing the file name to which the icon data should be written.
Value
Returns NULL
or an integer
status passed on by the
close()
function, that is used to close the file connection.
It is returned invisibly.
Details
The AmigaIcon()
S3 object provides a comprehensive format
for Amiga icons, which are used as a graphical representation of files
and directories on the Amiga. The AmigaIcon()
is a named
list containing all information of an icon. Use this function to
write this object to a file which can be used on the Commodore Amiga
or emulator.
See also
Other AmigaIcon.operations:
AmigaIcon
,
rawToAmigaIcon()
,
read.AmigaIcon()
,
simpleAmigaIcon()
Other io.operations:
read.AmigaBasicBMAP()
,
read.AmigaBasicShape()
,
read.AmigaBasic()
,
read.AmigaBitmapFontSet()
,
read.AmigaBitmapFont()
,
read.AmigaIcon()
,
read.SysConfig()
,
read.iff()
,
write.AmigaBasicShape()
,
write.AmigaBasic()
,
write.AmigaBitmapFont()
,
write.SysConfig()
,
write.iff()
Examples
## create a simple AmigaIcon:
icon <- simpleAmigaIcon()
## write the icon to the temp dir:
write.AmigaIcon(icon, file.path(tempdir(), "icon.info"))