EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #601 background imageLoading...
Page #601 background image
Appendix A: System Routines — Files
559
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
FCreate
Declaration:
WORD
FCreate
(char *
fileName
, char *
typeName
)
Category(ies):
Files
Description:
Create an empty file. Normally only needed if multiple files must be
simultaneously opened in write mode. Return value same as
FOpen
.
typeName
is the same value normally passed to
FOpen
.
Inputs:
fileName
String pointer to name of file to create.
typeName
Must point to a string of, at most, four characters that
describes the file type (FS_ERROR is returned if it does
not).
Outputs:
Same return value as
FOpen
.
Assumptions:
Same as
FOpen
.
Side Effects:
May cause heap compression or invalidate any current HSYMs.
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: FClose, FOpen
Example:
static char fType = "DAT";
FILES f1, f2;
if (FS_OK == FCreate("f1", fType) && FS_OK == FCreate("f2",fType)) {
if (FS_OK == FOpen( "f1", &f1, FM_WRITE, fType )) {
if (FS_OK == FOpen( "f2", &f2, FM_WRITE, fType )) {
writeToFile( &f1 );
readFromOtherFile();
writeToFile( &f2 );
writeToFile( &f1 );
FClose( &f2 );
}
FClose( &f1 );
}
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals