opensubscriber
   Find in this group all groups
 
Unknown more information…

f : fpc-announce@lists.freepascal.org 20 March 2007 • 4:01AM -0400

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

REPLY TO AUTHOR
 
REPLY TO GROUP




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      : SVN
Date         : 2007-03-19
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 classes. 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 blockread, readln, assign, reset, and more.
<pre>
-GetFileSize <i>text or binary file</i>
-StrLoadFile, StrSaveFile (FileToString, StringToFile)
-GetLn1, GetLnN, GetLineCount
-ArrayLoadFile, ArrayLoadLines, ArrayLoadRng  
-StrLoadLines, StrLoadRng
-OpenFile and FileExists without using sysutils
-GetLineCount of file
</i>
</pre>
No reliance on 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>
A web based Tail emulator was even built (checks last ten lines of file continually) and that utility is
<a href="http://opensvn.csie.org/pspcgi/psp-1.6.x-devel/examples/tail-emulator/emutail.pp">here</a>

_______________________________________________
fpc-announce maillist  -  fpc-announce@list...
http://lists.freepascal.org/mailman/listinfo/fpc-announce

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.