writeln Function while reading a Text File is printing appending text "before text" and "after text" at the same position

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Jun 3 21:40:31 UTC 2020


On Wed, Jun 03, 2020 at 08:43:43PM +0000, BoQsc via Digitalmars-d-learn wrote:
> On Wednesday, 3 June 2020 at 20:05:52 UTC, ttk wrote:
[...]
> > That works, but consider using chomp() instead.
> > 
> > https://dlang.org/phobos/std_string.html#.chomp
> 
> Chomp sounds kind of funny hahaha.
> Who came up with these function names? Walter Bright?
> Anyways, Chomp's way looks way more simple. Thanks.

Chomp comes from Perl.


T

-- 
For every argument for something, there is always an equal and opposite argument against it.
Debates don't give answers, only wounded or inflated egos.


More information about the Digitalmars-d-learn mailing list