C++builder相对路径语句问题
c++builder2009版本。项目路径下有个files文件夹:
RichEdit1->Lines->LoadFromFile(ExtractFilePath(Application->ExeName)+"Files\\txtTest.rtf");
找不到文件。怎么办啊?
[解决办法]
RichEdit1->Lines->LoadFromFile(ExtractFilePath(Application->ExeName)+"..\Files\\txtTest.rtf");