Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Nano to Edit text in a C++ file

Status
Not open for further replies.

PaulReed

Technical User
Jun 15, 2008
61
US
I know nothing about C++ and I don't want to make a mistake.

I have a C++ file that is used with an SMTP service, and it has text in it that shows up at the bottom of the outgoing email message.

Can I modify this text within the file with Nano and save it without destroying the file?

Thank,
PaulReed
 
Like for example it has
Code:
char message[] = "hello\n";
and you want to change it to
Code:
char message[] = "hello\n"
                 "world\n";
Sure, you can do that, but you would need to recompile the application for the change to take effect.



--
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top