SL_OpenFile


NAME
SL_OpenFile -- opens a file for reading or writing.

SYNOPSIS
filehandle = SL_OpenFile(apphandle, filename, mode);
D0 A0 A1 D0

SLFHANDLE SL_OpenFile(APPHANDLE, SLCHAR *, WORD);

FUNCTION
Opens the specified file for reading or writing. The FOPEN_READ mode
is a shared mode. That is other applications can obtain read permission
on the file at the same time. No data may be written to the file in this
mode. The FOPEN_WRITE mode is an exclusive mode. This mode will create
the file if is does not exist and will zero the file if it does exist.

The modes FOPEN_READ and FOPEN_WRITE are bufferd i/o modes. The buffer
size is 8k (on the amiga).

INPUTS
apphandle - as returned by SL_AppInitA.
filename - the full path name of the file to open.
mode - FOPEN_READ will open the file for reading.
FOPEN_WRITE will open the file for writing.

RESULTS
filehandle - a handle to use to refer to the file. NULL is returned if the file could not be opened.

SEE ALSO
SL_BeginExamine, SL_CloseFile, SL_DeleteFile, SL_DoesFileExist, SL_EndExamine, SL_EndFileNotify, SL_ExamineFirstFile, SL_ExamineNextFile, SL_FileRequesterA, SL_FlushFile, SL_GetExFileInfo, SL_GetExFileInfoFH, SL_GetFileName, SL_GetFileNotifyAttrA, SL_GetFilePath, SL_GetFilePos, SL_GetFileSize, SL_GetFileSizeFH, SL_LockFile, SL_MakePath, SL_OpenClipboard, SL_OpenFile, SL_ReadFile, SL_RenameFile, SL_SeekFile, SL_SetFileNotifyAttrA, SL_UnlockFile, SL_WriteFile.

 

SL_OpenFile  Command Section By Type  url:SL_OpenFile
  created:2008-03-01 23:36:16   last updated:2008-03-01 23:36:16
  Copyright © 1985-2017 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For SL_OpenFile
There are no user contributed comments for this page.