Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12420
| From | "R.Wieser" <address@not.available> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: EOL type detection |
| Date | 2022-03-06 10:06 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <t01tif$gr4$1@gioia.aioe.org> (permalink) |
| References | <bb79q57z2c92.16pyyy6q0tjfm.dlg@40tude.net> <svvt9e$v97$1@gioia.aioe.org> <1nd3b1sdbo4kn$.fh7v45y1h0o8.dlg@40tude.net> |
JJ, > That's a cost which I can't afford, since the input file sometimes > can be pretty large. You already have to : a 'ReadLine' will cause a vbCR EOL file to be read all at once. Which ofcourse will also happen with files which simply do not have EOLs. But if the storage size is what would be the problem you could just read the stream character-by-character up until you found both the vbCR and vbLF chars (or reach EOF). Instead of the cost being storage space it would be time. > AFAIK, Windows never support Mac's EOL. Have you already tried to create such a file and open it with write.exe ? I did, and it looks pretty normal. Not so much when using (XP's) notepad though. Also, if you chose not to support such MAC-style files you still will need to be able to recognise them - even just so you can reject them. :-) Regards, Rudy Wieser
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar
EOL type detection JJ <jj4public@gmail.com> - 2022-03-05 15:39 +0700
Re: EOL type detection "Mayayana" <mayayana@invalid.nospam> - 2022-03-05 08:57 -0500
Re: EOL type detection JJ <jj4public@gmail.com> - 2022-03-06 06:27 +0700
Re: EOL type detection "R.Wieser" <address@not.available> - 2022-03-05 15:49 +0100
Re: EOL type detection JJ <jj4public@gmail.com> - 2022-03-06 06:28 +0700
Re: EOL type detection "R.Wieser" <address@not.available> - 2022-03-06 10:06 +0100
Re: EOL type detection JJ <jj4public@gmail.com> - 2022-03-08 05:36 +0700
Re: EOL type detection "R.Wieser" <address@not.available> - 2022-03-08 11:03 +0100
Re: EOL type detection JJ <jj4public@gmail.com> - 2022-03-09 09:30 +0700
csiph-web