TextFile Example Overview

The TextFile example demonstrates how to read from a text file.

This example is a GUI based application. It uses ReadFromTextFileL() method to read a text from a file. Before a file can be opened and read, a file server session is created. Then the desired file is opened for reading. A buffer is created that reads the text from the file until the end is reached. Once the entire file has been read the buffer is appended to a RBuf object , and then displayed on the screen.

Download

Click on the following link to download the example: TextFile.zip

Click: browse to view the example code.

Class summary

RFs, RFile, TFileText, RBuf.

Usage

Commands are given to the example through its menu option.

The menu option consists of:
  1. Read text file