Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!oliveb!sun!mykeiko!jjs From: jjs%mykeiko@Sun.COM (James Simon) Newsgroups: comp.lang.pascal Subject: Re: Sun Pascal bug? Message-ID: <43904@sun.uucp> Date: 3 Mar 88 00:55:28 GMT References: <14411@oddjob.UChicago.EDU> Sender: news@sun.uucp Reply-To: jjs@sun.UUCP (James Simon) Organization: Sun Microsystems, Mountain View Lines: 23 In article <14411@oddjob.UChicago.EDU> vinson@oddjob.uchicago.edu (Michael Vinson) writes: >I am using Sun UNIX Pascal, and I have a problem that is annoying in >the extreme. The problem is as simple as it is absurd: when I try to >compile a program that read a string (i.e. a packed array of char) from >a text (yes text) file, the compiler tells me "Can't read strings from >a text file"!!! This is crazy. It means, for example the the following >lines won't work: > >var FileName : packed array[1..80] of char; >... >write('Enter file name: '); >readln(FileName); > >This is a pain in the *ss! Does anyone have any ideas/solutions/remedies? >(I mean, I can always read in a string one char at a time, but I shouldn't >have to. If you can't read strings from a text file, which includes standard >input, what can you read them from?) > >Michael Vinson This problem/feature has been fixed. I don't know what to say other than that in the Pascal 1.1 realease I/O is better. James Simon