IMPLEMENTATION OF TEXT EDITOR: write a C Program fro text editor using files. - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Sunday, June 5, 2011

IMPLEMENTATION OF TEXT EDITOR: write a C Program fro text editor using files.


IMPLEMENTATION OF TEXT EDITOR


Aim:                To write a C Program fro text editor using files.

Algorithm:

  1. Display options new, open and exit and get choice.
  2. If choice 1 , call  new.
  3. If choice 2, call open.
  4. else, exit.
5        new()
            Get the file name and open it in write mode.
            Get the text from the user to write it.

6        open()

            Get the file name from user.
            If present then open it in append mode.
            Display options modify,search,back and get choice.
            If choice 1, call modify.
            If choice 2, call search.
            Exit

7        modify()

            Get the text to add the existing file.
             Write it into the file and save the file.

8        Search()

            Get the string to search.
            If it is  present then print word found.
            Else, print word not  found.

No comments:

Post a Comment