From: Laurent <lutgenl@icloud.com>
Subject: Re: Problem with Unbounded Strings
Date: Fri, 4 Dec 2015 15:35:47 -0800 (PST)
Date: 2015-12-04T15:35:47-08:00 [thread overview]
Message-ID: <1957dd23-1034-43fb-b933-c74a7d694207@googlegroups.com> (raw)
In-Reply-To: <n3t3u8$fmk$1@dont-email.me>
On Friday, 4 December 2015 23:28:46 UTC+1, Jeffrey R. Carter wrote:
> One possible explanation is that your file was produced by a Windows system, and
> you're running your program on a Unix-based platform. In that case, Get_Line
> will return a string with a CR at the end. When displayed, the CR will return
> the cursor to the beginning of the line. So you begin by outputting
Bingo. The real log file is from a windows system. The simplified file I have made on my mac but with BBEdit. For some reason it also used the windows line endings? After changing that everything works as expected. Should have checked that first. I had already once a problem with that I think. Otherwise I wouldn't have put the "file" and "od -c" command into a txt file with an explanation.
Is there no function in the text io libraries to check which line endings are used?
Thanks
next prev parent reply other threads:[~2015-12-04 23:35 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 15:49 Problem with Unbounded Strings Laurent
2015-12-04 16:04 ` Dmitry A. Kazakov
2015-12-04 16:53 ` Laurent
2015-12-04 18:00 ` Niklas Holsti
2015-12-04 21:05 ` Laurent
2015-12-04 20:34 ` Dmitry A. Kazakov
2015-12-04 21:43 ` Laurent
2015-12-04 22:23 ` Dmitry A. Kazakov
2015-12-05 10:22 ` Laurent
2015-12-05 12:19 ` Dmitry A. Kazakov
2015-12-05 13:15 ` Laurent
2015-12-04 18:08 ` Jeffrey R. Carter
2015-12-04 21:21 ` Laurent
2015-12-04 21:59 ` Simon Wright
2015-12-04 23:19 ` Laurent
2015-12-04 22:02 ` Dmitry A. Kazakov
2015-12-04 22:28 ` Jeffrey R. Carter
2015-12-04 23:35 ` Laurent [this message]
2015-12-04 23:59 ` Jeffrey R. Carter
2015-12-05 10:13 ` Laurent
2015-12-08 1:53 ` Randy Brukardt
2015-12-04 23:00 ` Ben Bacarisse
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox