Thread View: sbcs.cse114
3 messages
3 total messages
Started by David Tiberio
Sat, 11 Apr 1992 05:35
file of data_type?
Author: David Tiberio
Date: Sat, 11 Apr 1992 05:35
Date: Sat, 11 Apr 1992 05:35
17 lines
992 bytes
992 bytes
In my first run of my database, I used a file
of type TEXT. But I want to use a file type of my custom
design so that I can store everything in binary format.
I tried:
var infile: file of database_record;
but that did not work. I also tried file of binary.
Any help?
--
// David Tiberio SUNY Stony Brook 2-3662 AMIGA DDD-MEN
// Not the llama! Come here Earl; I want to tell you something...
\X/ Liverpool, New York flames to suggestions@cbmvax.commodore.com
Re: file of data_type?
Author: Charles F Lane
Date: Mon, 13 Apr 1992 15:19
Date: Mon, 13 Apr 1992 15:19
24 lines
1648 bytes
1648 bytes
In article <1992Apr11.053527.21688@sbcs.sunysb.edu> dtiberio@csws17.ic.sunysb.edu (David Tiberio) writes:
> In my first run of my database, I used a file
>of type TEXT. But I want to use a file type of my custom
>design so that I can store everything in binary format.
>I tried:
>
>var infile: file of database_record;
>
> but that did not work. I also tried file of binary.
|
INFILE : FILE; <-----------
This should give you a binary file.
With this file type you can use all those
Seek[whatever] routines, as well.
>Any help?
> // David Tiberio SUNY Stony Brook 2-3662 AMIGA DDD-MEN
> // Not the llama! Come here Earl; I want to tell you something...
> \X/ Liverpool, New York flames to suggestions@cbmvax.commodore.com
--
~~~~~~~ I'm (sine)waving goodbye! | Bo knows football, basketball, baseball,
Charles F. Lane | hockey, diddley, etc. But does he know
clane@Libws1.ic.sunysb.edu | computers?!
Re: file of data_type?
Author: Jukka Korpela
Date: Tue, 14 Apr 1992 07:35
Date: Tue, 14 Apr 1992 07:35
15 lines
1364 bytes
1364 bytes
Please specify your problem in some detail, instead of just saying "that did not work". An isolated line of code (a declaration) cannot work, of course. People will try to guess the context, the error message, the compiler used, etc. ad nauseam. In general, one can use 'file of t' where 't' is a type if one is using a standard-conforming implementation which happens to support such files (it need not). One can do Reset, Rewrite, Get, Put, Read, and Write in their simple versions. If you need e.g. random access (you might if you have a database application!), you need some extensions, which tend to depend on the implementation. * Jukka "Yucca" Korpela * Jukka.Korpela@hut.fi * * Manager of User Support * * Helsinki Univ. of Technology Computing Centre, Finland *
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads