Possible Duplicate:
change file extension c#
the following code is in c++, how would i represent this in c#?
FILE fp = fopen(ChangeFileExt(Application.ExeName, ".DAT").c_str(), "w");
Another question related to this topic is:
The equivalent in c# for the following:
fputs((thisstring.CommaText + "\n").c_str(), fp);