Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!noose.ecn.purdue.edu!ea.ecn.purdue.edu!wieland From: wieland@ea.ecn.purdue.edu (Jeffrey J Wieland) Newsgroups: comp.os.cpm Subject: Re: Need WordStar utility Keywords: wordstar non-document Message-ID: <1990Dec14.163001.6774@noose.ecn.purdue.edu> Date: 14 Dec 90 16:30:01 GMT References: <16529@s.ms.uky.edu> <699@organpipe.UUCP> Sender: news@noose.ecn.purdue.edu (USENET news) Organization: Purdue University Agricultural Computer Network Lines: 30 In article <699@organpipe.UUCP> tom@afthree.as.arizona.edu (Thomas J. Trebisky) writes: >In article <16529@s.ms.uky.edu> tindle@ms.uky.edu (Ken Tindle) writes: >>Files created with WordStar must contain some binary characters, which is >>ruining the "raw" upload of program code to the uC board. >>I need a real, flat ASCII file on disk- so is there easily available a >>utility to massage WordStar output? > >Just talked to my CPM guru nextdoor and he says to write a simple >filter that does this - >Read the file byte by byte. >Force the high bit in every byte to zero on every byte read. > >ttrebisky@as.arizona.edu (internet) With WordStar 4.0 for CP/M, you have a couple of options. You can force it to open a file in non-document mode from the command line: ws filename.ext n If you do accidently create a file in document mode, you can always use good ol' pip to strip the high bits off: pip ascii.txt:=highbits.doc[z] WordStar 4.0 can also strip the high bits. Re-open the file in non-document mode, then use ^B (I believe -- it might be ^^) to convert the file to an ascii file. Use ^QQ^B, and then WordStar do its stuff. -- Jeff Wieland wieland@acn.purdue.edu