Form Feed in text file

  • Thread starter Thread starter Brad Sanders
  • Start date Start date
B

Brad Sanders

Hello All,

Thanks to Richard's answer to my last post I understand
now what I have to do, but..

How do I put a Line Feed or a Form Feed into a text file?
Looking throught the .net help it mentions \f but
illustrates no way write it to a text file.

Thanks
Brad
 
Hello Brad,

It actually depends on how exactly you do the writing, Chr(13) and Chr(10)
will return the line feed and the form feed characters you can then output
to a text file.

There's also Environment.NewLine constant - I even think you should stick to
this one, as the Line-Feed, Form-Feed sequence is not logical but physical
delimiter. And the character defined by the Environment.NewLine constant is
the logical delimiter guaranteed to be correctly transformed to the physical
one by the framework during I/O operations.
 
* "Brad Sanders said:
Thanks to Richard's answer to my last post I understand
now what I have to do, but..

How do I put a Line Feed or a Form Feed into a text file?
Looking throught the .net help it mentions \f but
illustrates no way write it to a text file.

Have a look at the 'ControlChars' class and its members.
 
Back
Top