读取一个文件的另一个文件的路径 [英] Reading frome one file the path of another file

查看:124
本文介绍了读取一个文件的另一个文件的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在文件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 other INI file. Then use the obtained string as lpFileName parameter in successive GetPrivateProfileString calls.


请参阅 GetPrivateProfileString 功能 [ ^ ]及其系列。
See the GetPrivateProfileString function[^], and its family.


这篇关于读取一个文件的另一个文件的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆