Category : Pascal Source Code
Archive   : PAS_0693.ZIP
Filename : CSTRTEST.PAS

 
Output of file : CSTRTEST.PAS contained in archive : PAS_0693.ZIP
{Ä Fido Pascal Conference ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PASCAL Ä
Msg : 403 of 413
From : Todd Holmes 1:152/5.0 25 Jun 93 10:25
To : All
Subj : CStr Demo
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ}
Program CstrTest; {_Tested !!}
{Demostrates the use of CStr.Pas}

Uses Objects,Cstr;


Var
Stream: TBufStream;
I: integer;
PS: String;
begin
Stream.Init('Text.txt',stCreate,1024);
For I := 1 to 1000 do begin
Str(I,PS); {Converts Integer to String}
StorePstr(Stream,PS); {Stores Pas string on the stream as a C String}
end;
Stream.Done; {Shuts down the stream}
Stream.Init('Test.Txt',stOpenRead,1024);
Repeat
Writeln(LoadPStr(Stream));
Until Stream.GetPos = Stream.GetSize;
Stream.Done;
end.

  3 Responses to “Category : Pascal Source Code
Archive   : PAS_0693.ZIP
Filename : CSTRTEST.PAS

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/