[fpc-announce] Free Pascal Contributed units modified entry. (StrWrap1)

contribs at freepascal.org contribs at freepascal.org
Sun Feb 18 18:41:20 CET 2007


The following entry in the Free Pascal contributed units was modified:

Name         : StrWrap1
Author       : Lars (L505) & Jeff (YetAnotherGeek)
Email        : fpcunits1(at)z505(dot)com
Homepage     : http://z505.com/
FTP site     : https://opensvn.csie.org/pspcgi/psp-1.6.x-devel/extras/strwrap1/
Version      : 1.0F
Date         : 2007-02-18
Category     : File Handling
Supported OS : All (Linux, bsd, win, etc)
Description  :
Some string and array functions to make getting data out of a text files easy, without using stringlists or functions that would haul in a lot of free/create. Sometimes you find a StringList <b>overkill</b> - these are some simple but powerful string & array operations. 
<p>
This unit is essentially a wrapper for readln, assign, reset, and many more.
<pre>
 -GetFileSize <i>text or binary file</i>
 -StrLoadFile, StrSaveFile 
 -GetLn1, GetLnN, GetLineCount 
 -ArrayLoadFile, ArrayLoadLines, ArrayLoadRng   
 -StrLoadLines, StrLoadRng 
 -OpenFile and FileExists without using sysutils
</i>
</pre>
You do not need to include the hefty 'classes' or Sysutils unit. The entire file is not loaded into the memory with these functions - only the precise lines that you want. Stringlists in contrast, loads the entire file into memory no matter what!
<p>
Useful in situations, such as when you have simple config files, or in CGI programming, and more.




More information about the fpc-announce mailing list