[C/C++] Read configuration file

說來也趣味,這篇文章的起因是因為我在改寫 Apriori code時,由於看不懂其中某段configure_file的操作,就上網找一些資訊。

偶然間發現可以讀取configuration file的小程式:A C++ Class to read Configuration file

例如,他只要寫下列設定檔:
[section_1]
foo = bar
water= h2o

[section_2]
foo = foo
water= wet
four = 4.2
然後在讀取程式那邊這麼寫:

就可以輕鬆讀取設定檔了。若想要知道詳細的code,請到A C++ Class to read Configuration file

This entry was posted in C/C++, 程式設計. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *