Jim LaGrone <[email protected]> wrote on 08/05/2009 04:05:29 PM:
> I have the following code that is not reading a binary file. I can
> read the file with C and Java programs, but this X10 code is
> retrieving an incorrect value for the same file.
>
> var i: int;
> var inputStream: FileReader ;
> inputStream = new FileReader( new File(file_path) );
> i = inputStream.read();
>
> If this is a bug, I'll file a bug report. If this is the incorrect
> method for reading an int, let me know.
Jim,
Could it have something to do with the fact that FileReader.read()
in X10 returns a Byte, not an Int (and thus the value is truncated)?
Please see if you can reproduce this with a 1-character file, and
open a JIRA with instructions for creating that file, the value you
get in X10, and the value you expect to get.
Igor
--
Igor Peshansky (note the spelling change!)
IBM T.J. Watson Research Center
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
X10: Parallel Productivity and Performance (http://x10.sf.net/)
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users