Hello,
I would like to ask, I hava a program that creates a file FileName.fpp and I would like to create an error file that is FileName.err but not FileName.fpp.err. Thanks for any replies,
AnsiString str = Edit1->Text; // Get a copy of the string
int dotpos = str.LastDelimiter("." // Find index of dot
if (dotpos != 0) str.SetLength(dotpos-1); // Remove dot and tail
Label1->Caption = str + ".err"; // And new tail and show result
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.