Re: tape i/o
>
> An example:
> open(15,file='/dev/rmt/0n',status='OLD',form='UNFORMATTED')
> read(15,'(A)')input
>
You're opening the file for unformatted data but reading with a format. You
need either
open(15,file='/dev/rmt/0n',status='OLD',form='UNFORMATTED')
read(15)input
or
open(15,file='/dev/rmt/0n',status='OLD',form='FORMATTED')
read(15,'(A)')input
depending what's on your tape (tape??? -- do they really still exist?).
Regards,
Mike Metcalf
.
Relevant Pages
- Re: frustrated by fscanf and sscanf
... there is no threads talking about reading a series of numbers. ... <snip description of input file structure> ... Your description of the file format makes no sense at all. ... along with a sample of your input file or a clearer ... (comp.lang.c) - Re: Reading and Writing to Binary files
... really used it but to look up a command every once and a while if I forgot ... > only do IO in a textual format, that is what they were made for. ... > you wonder about the binary flag passed to open, you didn't bother reading ... program uses the "istringstream" class to store the information. ... (comp.programming) - Re: TCL 8.5.0.0 beta not handling XBMs?
... I'm not aware of any reason for XBM files to be a problem in general, ... I thought the error was saying it found something nasty reading the file. ... due to the not-very-obvious format of the -bitmap option (which in turn ... (comp.lang.tcl) - Word should open docs with the same formatting as they were saved
... Word 2003 has introduced the "reading view", which is the default format when ... formatting and pagination in reading view, in some cases looking worse than ... This post is a suggestion for Microsoft, ... (microsoft.public.word.pagelayout) - Re: new for reading file containing multiple records
... I would suggest you use the built-in BioPerl method for reading ... fasta format, for example: ... push @seqs, $seq->seq; ... (perl.beginners) |
|