 | | Re: how does a line end?
|
|
Tore Eriksson schrieb: (...) After read all this and also after I have had a look at (URL) I think that Tore is right by saying "read all and save secure". Do avoid for future discussions this should be mentioned also in the LDraw Specification. (...) (20 years ago, 7-Apr-07, to lugnet.cad)
|
| |
 | | Re: how does a line end?
|
|
(...) Slight correction - "0x0D 0x0A" And this is kind of my point. The string you pass to printf() has \n only, which is only one byte. Offhand I don't remember if this is because of the Borland libraries, the operating system, or the fact that (...) (20 years ago, 7-Apr-07, to lugnet.cad, FTX)
|
| |
 | | Re: how does a line end?
|
|
(...) (For some unknown reason, all my backslashes disappeared in previous message.) /Tore (20 years ago, 7-Apr-07, to lugnet.cad)
|
| |
 | | Re: how does a line end?
|
|
(...) 1. I always use alt. b. "printf("Hello, world!n");" But as a self-made hobby programmer not knowing all the tweeks and geeks, I wouldn't be surprised if the interpretation of this may vary from one IDE to another, or if there is an .ini file (...) (20 years ago, 7-Apr-07, to lugnet.cad, FTX)
|
| |
 | | Re: how does a line ends?
|
|
(...) I've been writing text parsing programs for over 20 years, and have found that the approach I've suggested works very well at detecting line ends in a consistent manner. Counting lines in a file by this method agrees with every compiler and (...) (20 years ago, 7-Apr-07, to lugnet.cad, FTX)
|
| |
 | | Re: how does a line ends?
|
|
Travis Cobbs schrieb: (...) It seems that all of you are programming in C. As I am always programming in VB it is much work to implement a new 'Line Input' as VB assume a CRLF at the end of each line. I have just run a little prog against the parts (...) (20 years ago, 7-Apr-07, to lugnet.cad)
|
| |
 | | Re: how does a line ends?
|
|
(...) I don't fully agree with this. In the nearly seven years since I released LDView 0.1, I've never once run into an LDraw file that LDView couldn't handle due to line terminations, and it requires the newline character to be present at the end (...) (20 years ago, 7-Apr-07, to lugnet.cad, FTX)
|
| |
 | | Re: how does a line ends?
|
|
(...) There was some discussion about this issue recently. Unfortunately, this is not the kind of problem that can be solved by tightening up the spec. The problem is that people use different text editors on different operating systems to create (...) (20 years ago, 6-Apr-07, to lugnet.cad, FTX)
|
| |
 | | Re: how does a line ends?
|
|
(...) Hi Mike, This thread ((URL) contains various bits of discussion about the issue. Given that all software works with DOS newlines (cr+lf) and some doesn't work with the other varieties I personally think that cr+lf should be forced on all (...) (20 years ago, 6-Apr-07, to lugnet.cad)
|
| |
 | | how does a line ends?
|
|
In the LDraw File Format ((URL) it is written that "LDraw files are plain text." and "Each line in the file is a single command.". Also in the LDraw.org File Format Version 1.0.0 ((URL) there is no more specification. I found some parts that do not (...) (20 years ago, 6-Apr-07, to lugnet.cad)
|