c program for writing notepad at end of file

c program for storing data into notepad

Program:-



Note:-
fp=fopen("e:\\text.txt","a");
# a is used to write at end of file
# a+ is used for both write at end of file  and read
# w is used write into file, it will erase old data, if file is not present it will create a file
# w+ is used for both writing and reading into file, it will erase old data,  if file is not present it will create a file
# r is used to read file
# r is used for both write and read.if file is not present it will show error.

Also see


c program to create notepad 

c program for reading notepad

c program to write data into notepad

c program for copy string from one notepad to another notepad

3 Comments

  1. Write an interactive program in C language to create an application similar to “NOTEPAD”. Write a program, mynotepad.c, which reads words from any file having extension “.txt” and displays each word on a line by itself. A word is defined as any sequence of characters separated by a blank, a tab, or a newline. Note that this definition for a word considers punctuation as part of the word. This program should have features like cut, copy, paste, write and search. The application should be designed user-friendly.

    ReplyDelete
    Replies
    1. please give answer of it

      Delete
  2. Write an interactive program in C language to create an application similar to “NOTEPAD”. Write a program, mynotepad.c, which reads words from any file having extension “.txt” and displays each word on a line by itself. A word is defined as any sequence of characters separated by a blank, a tab, or a newline. Note that this definition for a word considers punctuation as part of the word. This program should have features like cut, copy, paste, write and search. The application should be designed user-friendly.

    ReplyDelete

Add your comments here

Back to Top