Recommended way to read and write .ini files

前端 未结 4 1202
野性不改
野性不改 2021-02-04 12:23

Are any methods available in VBA to read and write INI files? I know I could use;

Open \"C:\\test.ini\" For Input As #1

...and parse the data.

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-04 13:07

    FileSystemObject object with a [TextStream](http://msdn.microsoft.com/en-us/library/314cz14s(VS.85).aspx) is the usually recommended method for reading and writing textfiles in VBA.

提交回复
热议问题