MDK-ARM Keil, MDK-ARM Datasheet - Page 53
![KIT REALVIEW MCU DEVELOPMENT](/photos/9/32/93274/mdk-arm_sml.jpg)
MDK-ARM
Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Specifications of MDK-ARM
For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 53 of 156
- Download datasheet (3Mb)
Getting Started: Building Applications with RL-ARM
feof() returns zero until the end of file is reached. Notice, it is possible to read
past the end of a file. While reading or writing data, ferror() reports access errors
in the file stream. Once an error has occurred, ferror() returns the error code
until the file is closed, or until the file pointer is rewound to the start of the file.
fseek(), ftell(), and rewind() position the file pointer within the file. fseek()
moves the file pointer to a location within a file. This location is defined relative
to an origin, which can be the start or the end of the file, or the current file
pointer position. ftell() reports the current location of the file pointer relative to
the beginning of the file. rewind() places the file pointer at the start of the file.
rewind (Fptr);
fseek (Fptr, 4, SEEK_CUR); // Move 4 chars forward rel. to the FP location
location = ftell (Fptr);
Four standard functions exist to write data to a file stream in byte, character,
string, or formatted output format. Similarly, four analogous functions exist to
read data.
while (!feof (Fptr))
}
Exercise: File Handling
This project contains several examples, which demonstrate creating files,
reading and writing data, and managing the data within a file.
Function
fwrite
fputc
fputs
fprintsf
fread
fgetc
fgets
fscanf
byte = fgetc (Fptr);
if (ferror (Fptr))
}
…;
Description
Writes a number of bytes to the file stream.
Writes a character to the file stream.
Writes a string to the file stream.
Writes a formatted string to the file stream.
Reads a number of bytes from the file stream.
Reads a character from the file stream.
Reads a string from the file stream.
Reads a formatted string from the file stream.
{
{
// Place file-pointer at the start of file
// Read the file pointer location
// Error handling
53
Related parts for MDK-ARM
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![MDK-ARM-B](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-B-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM-B
Manufacturer:
Keil Software
![MDK-ARM-SM](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software SUPPORT EXTENSION FOR MDK-ARM
Manufacturer:
Keil Software
![MDK-ARM-BASIC](/photos/28/43/284363/mdk-arm-basic_tmb.jpg)
Part Number:
Description:
KIT REALVIEW MCU DEVELOPMENT
Manufacturer:
Keil
Datasheet:
![MDK-ARM-UF](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM UPG TO FLOATING LIC
Manufacturer:
Keil Tools
![MDK-ARM-F](/photos/15/87/158780/keil_software_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM W/ FLOATING LICENSE
Manufacturer:
Keil Software
![MDK-ARM3.1](/photos/26/86/268691/landingpagekeilrealviewarmkit_tmb.jpg)
Part Number:
Description:
Development Software MCU DEV KIT FOR ARM uVISION & C++ & RTX
Manufacturer:
Keil Tools
![MDK-ARM-SMB](/images/no-image3.png)
Part Number:
Description:
Development Software SUPP LICENSE RENEWAL 90+ DAYS NO TECH SUP
Manufacturer:
Keil Software
![KEIL-PK51-INTL](/images/manufacturer_photos/0/6/609/silicon_laboratories_inc_tmb.jpg)
Part Number:
Description:
KEIL C-COMPILER INTERNATIONAL
Manufacturer:
Silicon Laboratories Inc
![OM10045](/photos/9/21/92162/om10045_tmb.jpg)
Part Number:
Description:
BOARD EVAL FOR LPC213X ARM MCU
Manufacturer:
NXP Semiconductors
Datasheet:
![TWR-K60N512-KEIL](/images/manufacturer_photos/0/2/262/freescale_semiconductor_tmb.jpg)
Part Number:
Description:
K60N512 Keil Tower Kit
Manufacturer:
Freescale Semiconductor
Datasheet: