Article View: news.software.nntp
Article #61847Re: YENC and CTRL-Z
From: Dr.Ruud
Date: Thu, 07 Nov 2002 10:16
Date: Thu, 07 Nov 2002 10:16
37 lines
2090 bytes
2090 bytes
Mike Horwath skribis: > what's with all this issue dealing with ^Z? > The issue is ^Z-Enter dealing with DOS and CPM. > ^Z by itself does nothing. > > Try it, open a DOS window: > > copy con somefile.txt > lksjdflkwhbhwerlkj > ^Zlkjsdflkjwqhwelrkj > ^Z-Enter 'copy con' defaults to text-mode. Try copy /b con somefile2.txt (in a Win2K-DOS-box it won't even create the file in binary mode) As for your example, the first entered line with an embedded Ctrl-Z, closes the file here. If you check the file, you'll see that the Ctrl-Z is the last character that is written to the file. In binary mode this is all no problem, check copy /b somefile.txt con and you'll see the Ctrl-Z on the screen (as some character, depending on your display settings etc.). A Ctrl-Z in a text-stream marks the end-of-text, so that any filler-bytes can be ignored. -- Affijn, Ruud
Technical Details
Message-ID:
<aqdi5i.s0.1@news.isolution.nl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.wirehub.nl!transit.news.xs4all.nl!news.xs4all.nl!not-for-mailReferences:
<I_2y9.9049$sP2.4623@sccrnsc02> <m1r8dyu6y7.gnus@usa.net> <20021106103156.562$Xr@newsreader.com> <061120022147496771%planb@newsreaders.com> <20021106230305.402$to@newsreader.com> <19jzzcc8zsoc6$.dlg@meowing.net> <3dca04d3$0$4490$a1866201@newsreader.visi.com>Show Full Headers
Complete Article Headers
Message-ID: <aqdi5i.s0.1@news.isolution.nl> Subject: Re: YENC and CTRL-Z Date: Thu, 7 Nov 2002 11:16:52 +0100 From: "Dr.Ruud" <'t.leven.is.fijn@life.i$.great> References: <I_2y9.9049$sP2.4623@sccrnsc02> <m1r8dyu6y7.gnus@usa.net> <20021106103156.562$Xr@newsreader.com> <061120022147496771%planb@newsreaders.com> <20021106230305.402$to@newsreader.com> <19jzzcc8zsoc6$.dlg@meowing.net> <3dca04d3$0$4490$a1866201@newsreader.visi.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.wirehub.nl!transit.news.xs4all.nl!news.xs4all.nl!not-for-mail Reply-To: "Dr.Ruud" <rvtol@isolution.nl> Newsgroups: news.software.nntp Organization: k-oz rewlz X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Lines: 36 NNTP-Posting-Host: 24.132.0.158 X-Trace: 1036664590 news.xs4all.nl 46602 rvtol/24.132.0.158:62244