读取一个文件的另一个文件的路径 [英] Reading frome one file the path of another file
本文介绍了读取一个文件的另一个文件的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在文件xxx.ini的[aaaa]部分中,我有指向文件yyy.ini的路径。
如何读取此路径并使用它?
In a section [aaaa] of the file xxx.ini i have the path that points to the file yyy.ini.
How do i read this path and use it?
推荐答案
您可以使用 GetPrivateProfileString [ ^ ]用于读取其他INI
文件的路径。然后在连续的GetPrivateProfileString
调用中将获取的字符串用作lpFileName
参数。
You may use GetPrivateProfileString[^] for reading the path of the otherINI
file. Then use the obtained string aslpFileName
parameter in successiveGetPrivateProfileString
calls.
请参阅 GetPrivateProfileString
功能 [ ^ ]及其系列。
See the GetPrivateProfileString
function[^], and its family.
这篇关于读取一个文件的另一个文件的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文