Re: datainput stream
From: Amey Samant (ameyas7_at_yahoo.com)
Date: 12/11/03
- Next message: Anthony Borla: "Re: datainput stream"
- Previous message: Brad BARCLAY: "Re: Constrained ada type in Java"
- In reply to: Amey Samant: "Re: datainput stream"
- Next in thread: Anthony Borla: "Re: datainput stream"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Dec 2003 20:30:04 -0800
hi all
got all the mess sorted out finally
the readInt method though returns "int" is meant to read data written
by writeInt
it reads 4 bytes so if you enter 45
the int will be stored as ascii values of foloowing chars serailly
starting high order byte first
4
5
\n
\r
i also got the reason why their demo code failed
on windows platform when the input is entered it also reads \n & \r
whereas on *nix platform it reads only \n & not \r so i modified their
code to writeChar('\r) also & then it works fine
i should have read the DOCS with utmost care ;)
i was confused as i saw the return type as 'int'
cheers
amey
- Next message: Anthony Borla: "Re: datainput stream"
- Previous message: Brad BARCLAY: "Re: Constrained ada type in Java"
- In reply to: Amey Samant: "Re: datainput stream"
- Next in thread: Anthony Borla: "Re: datainput stream"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|