QuesAns Print Page – CSKC
Sign In

Search

siteicon
Q&A CBSE12A-2019-A04A-C1 #7018

Question:

A text file named MESSAGE.TXT contains some text. Another text file named SMS.TXT needs to be created such that it would store only the first 150 characters from the file MESSAGE.TXT.

Write a user-defined function LongToShort() in C++ that would perform the above task of creating SMS.TXT from the already existing file MESSAGE.TXT.