read.adf | R Documentation |
Read data from an Amiga Disk File (ADF) to an amigaDisk
object. Alternatively data can be read from an ADZ file.
## S4 method for signature 'character'
read.adf(file)
## S4 method for signature 'ANY'
read.adf(file)
## S4 method for signature 'character'
read.adz(file)
file |
Either a file name or a file connection, that
allows reading binary data (see e.g., |
Amiga Disk Files usually have a .adf-extension to the file name. It should be 880 kB (double density) or 1760 kB (high density) in size. This function can read such files.
Alternatively, ADZ files can also be read. These are essentially gzipped ADF files.
Note that this package cannot read extended ADF files containing information on the disk's Modified frequency modulation (MFM). This information is typically only required for copy protected disk's and is therefore out of the scope of this package.
Returns an amigaDisk
object read from the provided Amiga disk file
Pepijn de Vries
Other io.operations:
write.adf()
## Not run:
## In order to read an adf-file, we first need one.
## so let's first write the example object to a file:
data(adf.example)
## write it to the current working directory:
write.adf(adf.example, "test.adf")
## now we can read it again:
my.disk <- read.adf("test.adf")
print(my.disk)
## and this is how you read it,
## using a connection:
con <- file("test.adf", "rb")
my.disk2 <- read.adf(con)
close(con)
print(my.disk2)
## Alternatively, you can work with ADZ files:
write.adz(adf.example, "test.adz")
my.disk3 <- read.adz("test.adz")
print(my.disk3)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.