CREdit list - http://www.geocities.com/plamen_p/credit/index.html

--------------------------- ListBot Sponsor --------------------------
Build a marketing database and send targeted HTML and text e-mail
newsletters to your customers with List Builder.

http://www.listbuilder.com
----------------------------------------------------------------------

I attache 2 files - one that is small enough to be read without problems -
and one that fails.

If the logic is as you describe the reason for the failure is that the file
has a first line to CR+LF - and the rest are only LF. The the program
assumes windows format and the 2nd line will the become to long.

What about an extended logic for detection of file-type  - for instance use
a configurable number of lines to detect the file type? Or at least a switch
in the open-dialog that tells the program how to interpret a file ?

For info the help text of Programmers File Editor states:
"When opening a file, PFE looks at what characters are used to terminate a
line. If the first line is terminated by a single Line-Feed character, PFE
assumes that the file is in Unix format; otherwise, it will assume the file
is in MS-DOS format."

I.e. only the exceptions are looked for - otherwise MS-DOS/Windows is
assumed. You could do the same: look for first single LF or single CR and
assume Unix or Mac - and if not found assume Windows.

Anders Klinting

-----Original Message-----
From: PLAMEN PARVANOV [mailto:[EMAIL PROTECTED]]
Sent: 26. februar 2001 08:19
To: CREdit list
Subject: Re: [RE: Stack overflow]


CREdit list - http://www.geocities.com/plamen_p/credit/index.html

--------------------------- ListBot Sponsor --------------------------
Build a marketing database and send targeted HTML and text e-mail
newsletters to your customers with List Builder.

http://www.listbuilder.com
----------------------------------------------------------------------

Hi,

In fact, CREdit should autodetect Windows, Unix and Mac format of line
endings, according to the first encountered end-of-line symbol. If it is LF,
the file is supposed to be in UNIX format; if it is single CR, the file is
supposed to be Mac; and if it is CR, followed by LF, the file is supposed to
be in DOS format.

Apparently in this case something went wrong.

Can you send me a sample of the first several lines of the file, so I could
investigate?

Best regards,
Plamen Parvanov
___________________________________________________________________


"Anders Klinting" <[EMAIL PROTECTED]> wrote:

Thanks, this is exactly what I was doing.

Support for detection of unix end-of-line would be nice. Other editors (e.g.
Programmers File Editor) have this - and when working in a mixed environment
(unix, DOS, Windows) it is nice not to have to shift between editors just to
read/edit text files...

Anders

-----Original Message-----
From: Thomas Ehardt [mailto:[EMAIL PROTECTED]]
Sent: 23. februar 2001 17:49
To: CREdit list
Subject: RE: Stack overflow


CREdit list - http://www.geocities.com/plamen_p/credit/index.html

--------------------------- ListBot Sponsor --------------------------
Build a marketing database and send targeted HTML and text e-mail
newsletters to your customers with List Builder.

http://www.listbuilder.com
----------------------------------------------------------------------

I've noticed this as well, but only when opening files that, for lack of a
better term, are "wide". I've opened plain text files of several MB but have
a problem if I open a smaller file that is, say, 900Kb contained on a single
line.

This can happen when opening Unix files on Windows ...

Thomas

"If ye love wealth better than liberty, the tranquility of servitude better
than the animating contest of freedom, go home from us in peace. We ask not
your counsels or your arms. Crouch down and lick the hands which feed you.
May your chains set lightly upon you, and may posterity forget that ye were
our countrymen."
--Samuel Adams

-----Original Message-----
From: Anders Klinting [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 8:16 AM
To: [EMAIL PROTECTED]
Subject: Stack overflow

CREdit list - http://www.geocities.com/plamen_p/credit/index.html

--------------------------- ListBot Sponsor --------------------------
Start Your Own FREE Email List at http://www.listbot.com/links/joinlb
----------------------------------------------------------------------

Hi
when I try to open a 900 KB file I get a Stack Overflow and the editor
crashes.

Is this a know Bug  - or is there a max size of files ?

Anders Klinting, M.Sc., Ph.D.
DHI Water & Environment
...a merger between Danish Hydraulic Institute and VKI - Institute for
the Water Environment
Agern Alle 5
DK-2970 - Horsholm - Denmark
phone    : +45 45 169 200
direct : +45 45 169 345
fax      : +45 45 169 292
e-mail : [EMAIL PROTECTED]
www      : http://www.dhi.dk



____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1


______________________________________________________________________
To unsubscribe, write to [EMAIL PROTECTED]



______________________________________________________________________
To unsubscribe, write to [EMAIL PROTECTED]

FPS_GAUG.ksx

LFAM_CON.ksx

Reply via email to