From 067300d004f9a9daecc62750fe07b45c4cee25a0 Mon Sep 17 00:00:00 2001 From: ashish620-boogle <56781746+ashish620-boogle@users.noreply.github.com> Date: Sat, 26 Oct 2019 22:53:55 +0530 Subject: [PATCH] Create diary.cpp --- diary.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 diary.cpp diff --git a/diary.cpp b/diary.cpp new file mode 100644 index 00000000..05e7c187 --- /dev/null +++ b/diary.cpp @@ -0,0 +1,22 @@ +#include +#include +#include + +int main() +{ + char story[200]; + fstream fin; + fin.open("Story.txt",ios::out|ios::in); + + + cout<<"Enter your story in the diary-\n press any key to continue:-"; + getch(); + clrscr(); + + cin.getline(story,sizeof(story),"end"); + fin<