Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!panews.awdpa.ibm.com!rchland.ibm.com!seurer+ From: seurer+@rchland.ibm.com (Bill Seurer) Newsgroups: comp.lang.modula2 Subject: Re: Character Assign/Read to Cardinal Message-ID: Date: 5 Apr 91 17:08:43 GMT References: <111639@unix.cis.pitt.edu> Organization: IBM Rochester, Mn Lines: 11 In-Reply-To: <111639@unix.cis.pitt.edu> No, that shouldn't be acceptable. Sounds like he is using JPI. It does really strange things if you try to enter a non-numeric character when it is reading a number. The solution is to read everything as character strings and then use the string conversion functions to convert to whatever it is you expected to read. They usually have some sort of error flag so you can detect when bad data was typed. - Bill Seurer IBM: seurer@rchland Prodigy: CNSX71A Rochester, MN Internet: seurer@rchland.vnet.ibm.com