code_junkie

Is there a Delphi library which reads and writes .properties files

Nov 14th, 2011
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. MyProgramData=c:documents and settingsDRApplication DataMyApp
  2.  
  3. var
  4. SL: TStringList;
  5. MyDataPath: string;
  6. begin
  7. SL := TStringList.Create;
  8. try
  9. SL.LoadFromFile('myapp.properties');
  10. MyDataPath := SL.Values['MyProgramData'];
  11. finally
  12. SL.Free;
  13. end;
  14. // Do something with MyDataPath
  15. end;
Add Comment
Please, Sign In to add comment