(C) 1998 AROS - The Amiga Research OS
NAME
#include <proto/dos.h>
BPTR Open (name , accessMode)
LOCATION
In DOSBase at offset 5
SYNOPSIS
STRPTR name
LONG accessMode
FUNCTION
Opens a file for read and/or write depending on the accessmode given.
INPUTS
name
NUL terminated name of the file.
accessMode
One of MODE_OLDFILE - open existing file
MODE_NEWFILE
delete old, create new file exclusive lock
MODE_READWRITE
open new one if it doesn't exist
RESULT
Handle to the file or 0 if the file couldn't be opened. IoErr() gives additional information in that case.
EXAMPLE
SEE ALSO
NOTES
BUGS
INTERNALS
HISTORY
20.10.1998 hkiel
Amiga Research OS
21.12.1997 hkiel
Fixed warnings for use with cpak.
06.12.1997 srittau
Do not use IOFileSys->io_Args
Small changes and bugfixes
15.10.1997 srittau
Bugfixes and improvements
14.04.1997 aros
Polish
27.01.1997 ldp
Polish
09.12.1996 aros
Added empty templates for all missing functions
Moved #include's into first column
22.11.1996 aros
Fixed bug for Open("CONSOLE:") to make run work again
14.11.1996 aros
Some more changes
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
21.09.1996 digulla
Hand DOSBase to DoName()
17.09.1996 digulla
BADDR() instead of MKBADDR()
13.09.1996 digulla
Use IPTR
11.09.1996 digulla
Open() and Lock() are two different functions now (M. Fleischer)
13.08.1996 digulla
Replaced <dos/dosextens.h> by "dos_intern.h" or added "dos_intern.h" Replaced __AROS_LA by __AROS_LHA
12.08.1996 digulla
Added aliases
01.08.1996 digulla
Added standard header for all files
28.07.1996 digulla
Initial revision
28.07.1996 digulla
First CVS version of AROS