S60 5th Edition v0.9 Example Applications Guide

# IOStreams Example

1. About this Example
2. Description
3. Prerequisites
4. Design and Implementation
5. Results

## 1. About this Example

This example showing use of IOStreams with the help of simple Employee information portal.

## 2. Description

The example provides simple procedure for insertion and retrieval of employee records using iostreams. This example prompt user to select an options for either addition or retrieval of employee record. The program will create a seperate text file for each employee added to the database and updates the record. For retreiving the record of an employee , the program accepts employee name and open the file created for employee if exists and displays records. Also checks for duplication of employee name entry and while retrieval of employee details if no match found it informs user by printing no match found .

## 3. Prerequisites

This examples requires a basic understanding of the Symbian framework and Carbide C++.

Also on hardware all the sis needs to be installed.

## 4. Design and Implementation

The application is simple console based application. It has its own icon in installed folder and can be launched from the UI both in the emulator and in the device.

## 5. Results

On execution of this example prompts for user to enter option.
output:
---=----WELCOME TO NOKIA----=---
================================
1.To create the profile of new Employee
2.To see the details of Employee
3.To exit

input:
1

output
Empl Name:
input
nokia
output
Address:
input
*********
output
City:
input
*********
output
State:
input
****** *******
output
ZIP Code:
input
*********
output
Enter the name of the file you want to create:
input:
nokia
output
Want to continue press y OR Press any other key to exit
input
Y
output
---=----WELCOME TO NOKIA----=---
================================
1.To create the profile of new Employee
2.To see the details of Employee
3.To exit

input
2
output
Enter the name of the Employee:
input
nokia
output
-=- Employee Information -=-
Empl Name: nokia
Address: *********
City: *********
State: ****** *******
ZIP Code: *********
Want to continue press y
OR Press any other key to exit
Want some other information Press Y
input
n

Program exits.

© Nokia 2008 |