Bonsoir Lydie,
Welcome to JavaRanch and this forum!
1) Which one is it? is it US-ASCII ( 7 bits) or ISO-8859-1 or UTF-8???
There is no real difference between US-ASCII ( 7 bits) and the "8 bit US-ASCII" stated in the instructions.
Think of the fact that a byte (the smallest "normally" manageable memory
unit) uses 8 bits, hence 7 bits use a full byte anyway. In English, one bit is useless (and unused), just because English writers don't know the joy of using the weird �, �, �, �, �, �, �, �, �, ... and other funny characters we use in French and other european languages

and which are all coded on the 8th bit. So, at the binary level, US-ASCII and ISO-8859-1 are just compatible.
2) whwn I read the schema which is a mix of int and char for the field name and field length: if I use it should I read also the integer as char and then convert them?
The provided file is a binary one. So,
you should read expected primitives as such (readShort(), readInt(), ...), and text data as bytes (byte[]). Without using NIO (and its provided Charset class) as NIO is now forbidden in the latest versions of the instructions, you can convert a byte[] to a
String using the special String constructor which accept a charset name as second parameter. And to convert a String to a byte[], String.getBytes(String charsetName) looks perfect either.
3) Then I cannot use BufferedReader and I have to read char one by one
I'd avoid the use of any Reader (aimed to read *text*) with a binary file, and anyway you don't need it (see 2)).
A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way.
(...)
which mean that it is machine dependent....
What do you mean exactly?
What I can tell you for sure (it's a question often asked about that part of the instructions) is that DataInputStream and DataOutputStream are format-compatible with RandomAccessFile that you'll probably prefer to both of them (you'll have to read from the file, but also write to it, so RAF looks handier).
Regards,
Phil.
[ April 30, 2004: Message edited by: Philippe Maquet ]