我正在嘗試讀取.cfg文件我對YAML不夠了解,但我想這樣做:如何使用Delphi從YAML配置文件中讀取數據?
我的配置文件使用YAML。
Residences: luchidv: EnterMessage: Estas entrando la residencia %residence de %owner. BlackList: Type: BLACKLIST ItemList: [] LeaveMessage: Ahora estas saliendo de %residence. IgnoreList: Type: IGNORELIST ItemList: [] Areas: main: X1: -1560 Y1: 99 Z1: 1457
那麼,Delphi如何解析該配置文件的內容呢?
我需要閱讀的值,例如:
Line:13
X1: -1560
任何想法,該怎麼辦呢?
我一直在尋找有關,我發現這一點:
http://pyyaml.org/wiki/LibYAML
感謝
當我需要這樣做時,我寫了一個LibYAML的包裝。 –