松鼠的博客

导航

文章分类 -  BCB6-文件操作

C++ Builder 处理 INI文件的方法
摘要:使用TIniFile类 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->TIniFile *GameIni = new TIniFile ("fungame.ini"); GameIni->WriteBool("Options", "Sound", ... 阅读全文

posted @ 2008-10-11 08:53 Xproer-松鼠 阅读(712) 评论(0) 推荐(0)

XML文件操作
摘要:头文件 #include #include #include #include Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* 保存 路径:abcd\\abcd\\abcd.xml */ void CustomerPlay... 阅读全文

posted @ 2008-08-12 17:48 Xproer-松鼠 阅读(563) 评论(0) 推荐(0)

文件名称应用
摘要:ChangeFileExt Changes the extension of a file name. DosPathToUnixPath Converts a DOS-compatible path specification to a Unix-compatible path specification. ExcludeTrailingBackslash Returns a path name... 阅读全文

posted @ 2008-08-11 09:43 Xproer-松鼠 阅读(317) 评论(0) 推荐(0)

Borland C++ Builder VCL的文件操作函数
摘要:二.Borland C++ Builder VCL的文件操作函数 1. FileOpen 打开指定的文件,如果返回为正数,表示操作成功,返回值为文件句柄:如果返回值为-1,表示操作失败,函数原型如下: int __fastcall FileOpen(const System::AnsiString FileName,int Mode); 2. FileCreate 以指定的文件... 阅读全文

posted @ 2008-08-11 09:39 Xproer-松鼠 阅读(703) 评论(0) 推荐(0)