Recent

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 =
([Section]
 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',''));
  2.  
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?

Dibo

  • 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.

Regards

BlueIcaro

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

 

TinyPortal © 2005-2018