[comp.sys.amiga] How do you open a file in AmigaDos ?

saint@alessia.dei.unipd.it (M.A.N.I.A.C.) (09/14/90)

What's the right way to open a file in C unde AmigaDos ?

The way used by emacs doesn't work ....

(Note: I'm the one who asked to drk@athena.mit.edu to post a news fo
him.  Now I can wite in this group. Excuse my English. Thanks).

 /\           ___  /\
/___/\_|_|\_|__|__/__ WHODAT SAYING HE'S GONNA
  //--\| | \|  |    / BEAT THE SAINTS, WHODAT,
\/                \/         WHODAT ?

UH2@psuvm.psu.edu (Lee Sailer) (09/15/90)

In article <6143@alessia.dei.unipd.it>, saint@alessia.dei.unipd.it
(M.A.N.I.A.C.) says:

>What's the right way to open a file in C unde AmigaDos ?

You need to make your question much more detailed.  If you mean, what is
the form of the AmigaDos it is (from memory, so a little fuzzy)

    struct FileHandle Open( char *, flags)

where the char * is a file spec string like "df1:xxx/yyy" and the flags
set for a new file, and old file, append mode, and so on.

With the LAttice/SAS compiler you can also use most of the usual Unix
commands, such as fopen() and printf() and so on, in the usual way.

>The way used by emacs doesn't work ....

Again.  Please give more detail.  Which Emacs?  Where in Emacs does the
open not work?

Lastly, we can live with your English.  After all, hardly any of us
speak Italian.