From: 1LENDL@EDVZ.UNI-SALZBURG.ADA.AT
Subject: Help !!!!
Date: 7 Jul 90 07:23:46 GMT [thread overview]
Message-ID: <9007061745.AA27779@ajpo.sei.cmu.edu> (raw)
Hi all, I need some ADA help.
( I hope there are some ADA-freaks here ! )
Question 1:
I have to read a Text-file. All works well with GET_LINE. BUT :
The file is from an IBM-PC, and it is in German that means there
are the special German characters ( Umlaute, scharfes S ) in it.
These characters are encoded as 132, 142, ... all above 127 !
As far as I know, the type character is defined as an enumeration,
from 0 to 127, so the special characters are not defined in it.
Funny enough, when I try to read such characters I do not get
any error, exception or other faults. When I "put" it afterwards,
the original special character is written.
Anyway, I want to make a CASE statement over all characters read:
case char is
when 'a' .. 'z' => -- This works fine
when character'pos(132) => -- This gives a compiler-error:
-- "Choices have to be static"
What shall I do ? Making an IF-clause out of it ?
( is character'pos(132) legal ? )
Question 2:
I want to read/write a simple file with no structure, a simple
stream of bytes. I tried it with :
type BYTE is range 0 .. 255;
for BYTE'SIZE use 8;
package byte_io is new DIRECT_IO ( Element_type => BYTE );
...
byte_io.write ( fh, byte(34) );
...
In the file there is the Value I wanted to write, then a 0, a value,
a 0, .... Why THAT ????
( Thinks were easy in C .... )
What have I done wrong ?
I use the SYSTEAM Ada compiler on a VAX running VMS.
Please send all help for DIRECT to me, for I'm not on this List.
========
( No time for reading so much mail ! )
Thanks !
--Otmar Lendl--
3\ 3 3\ /3 3\ 3\ 3 3\ 3 3\/3 3\ /\ 3\ /3\ 3\ 3\
3\ X 3 X 3 3 3 3/ 3 3 o 3> 3 3 o 3\ 3 3 3\ 3 3\ 3/
3 3 3/ \3 3 3 3\ 3 3 3 3 3 3 3 3 3 3 3 3\
1LENDL@EDVZ.UNI-SALZBURG.ADA.AT
PSI%023225629007::1LENDL
And for the ones, who don't know where Austria is :
1lendl%edvz.uni-salzburg.ada.at@CUNYVM.CUNY.EDU
next reply other threads:[~1990-07-07 7:23 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
1990-07-07 7:23 1LENDL [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-02-24 11:44 Help! Paul Gregory
2003-02-24 13:08 ` Help! Preben Randhol
2003-02-24 13:10 ` Help! Preben Randhol
2001-10-17 14:34 HELP!!!!!! F
2001-10-17 16:10 ` HELP!!!!!! Chris M. Moore
2001-10-17 18:17 ` HELP!!!!!! Jeffrey Carter
2001-10-18 7:10 ` HELP!!!!!! F
2001-10-18 8:11 ` HELP!!!!!! Martin Dowie
2001-10-18 16:57 ` HELP!!!!!! Jeffrey Carter
2001-10-17 17:31 ` HELP!!!!!! tmoran
2000-08-31 0:00 HELP!! Michele De Rosa
2000-08-31 12:20 ` HELP!! Pascal Obry
2000-08-31 12:23 ` HELP!! Ken Garlington
2000-03-24 0:00 Help!! Paul Moran
2000-03-24 0:00 ` Help!! Pascal Obry
1999-11-21 0:00 Help? Matthew Lawrence
1999-11-21 0:00 ` Help? David C. Hoos, Sr.
1999-11-22 0:00 ` Help? John English
1999-11-22 0:00 ` Help? Riyaz Mansoor
1999-11-22 0:00 ` Help? Robert Dewar
1997-06-10 0:00 HELP!!!!!! Luke Holden
1997-05-24 0:00 help! oliver white
1997-04-28 0:00 Help!! UserID
1997-04-29 0:00 ` Help!! Michael F Brenner
1997-03-16 0:00 HELP! Dominic Mailhot
1997-03-17 0:00 ` HELP! Jon S Anthony
1997-03-18 0:00 ` HELP! Robert Dewar
1997-03-18 0:00 ` HELP! Jon S Anthony
1997-03-18 0:00 ` HELP! Robert Dewar
1996-11-02 0:00 HELP!!! Aaron H
1996-10-01 0:00 Help! Cheryl Earnest
1996-10-01 0:00 ` Help! John Herro
1996-10-02 0:00 ` Help! Jean-Etienne Doucet
1996-10-03 0:00 ` Help! John Herro
1996-10-03 0:00 ` Help! John Herro
1996-10-01 0:00 ` Help! Samuel Tardieu
1996-10-01 0:00 ` Help! Larry Kilgallen
1996-10-01 0:00 ` Help! Keith Thompson
1996-03-27 0:00 HELP!!! ~ AnTY ~
1990-09-23 13:52 Help! Ken McCook;SCDQ;
1990-09-25 16:23 ` Help! Michael Feldman
1990-09-26 16:27 ` Help! Andy DeFaria
1990-09-26 19:26 ` Help! Andy DeFaria
1990-08-31 20:21 HELP! "Thomas H. Stripe 255-4472", 513
1990-09-05 16:27 ` HELP! Edward Falis
1990-01-24 1:26 Help! Rowan D. Stevens
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox