Board index » delphi » Null terminated strings

Null terminated strings

Quote
>I am sorry if this is a silly question but I can't figure it out.  I need to
>print the output of my programs from Borland Pascal 7.0 for DOS.  This is form
>my intro programming class in college so it is kind of important.  Thank you
>very much.

>        Sergio Gonzalez
>        Sgo...@eden.rutgers.edu                                                

To answer your question   just add
Writeln(lst,'blah','balh');
Don't forget the uses printer clause at the top.

I have a slight problem to.  I need to input a string that is
long then 255 characters.  It needs to be fairly flexible
because I have to be able to manipulate it easily.  Any
Ideas???

Chris McCann
Wp...@freenet.victoria.bc.ca

 

Re:Null terminated strings


Quote
Chris McCann <wp...@freenet.victoria.bc.ca> wrote:
>I have a slight problem to.  I need to input a string that is
>long then 255 characters.  It needs to be fairly flexible
>because I have to be able to manipulate it easily.  Any
>Ideas???

>Chris McCann
>Wp...@freenet.victoria.bc.ca

Hi,

One thing you could try is making a list of pointers to conventional strings. Deleting and
insterting will be hell. :-)

Another thing you cound do is declaring an ARRAY [1..MaxLen] (in dDos : Maxlen = 64 K)of Chars.
This would use a lot of memory however. TStill : delting and insteriting sub-strings wiill be
hell!

Hope this helps,

Henk Postma,

Other Threads