Author Topic: Quick Question...  (Read 3810 times)

captian jaster

  • Guest
Quick Question...
« on: August 29, 2010, 01:15:21 am »
Is there a limit to the length of the string returned in a TINIfile?
I noticed there was alot of XML Based EBooks so I wanted to try it with an INI File  :P
I got pretty far until i copied A long text into the =
 o=REALLY LONG TEXT WENT HERE... Maybe more then 40 chars :\)
I loaded the whole thing onto a TMemo with a
Code: Pascal  [Select][+][-]
  1. Memo.Append(INI.ReadStrings('Section','o',''));
But not every thing went on the memo  :'(
I deleted it but i had second thoughts D:
So just wondering... Is there a specific length of chars for when reading a string from an INI File?


  • Hero Member
  • *****
  • Posts: 1048
Re: Quick Question...
« Reply #1 on: August 29, 2010, 11:22:18 am »
I only know that the text can not have the line ending character (INI reads the text only to the first line ending character).

I always use INI only for typicaly program configuration (most numbers or short text). For big text is best to use XML or similar.



  • Hero Member
  • *****
  • Posts: 790
    • Blog personal
Re: Quick Question...
« Reply #2 on: August 29, 2010, 11:50:09 am »
Try this:
Memo1.Lines.Add (INI.ReadStrings('Section','o',''));


TinyPortal © 2005-2018