Hi, Currently I'm trying to read a text file and save it in a buffer. Below is my implementation.
try{ val fp = new File(this.fileName), fr = fp.openRead(); while(true) { s += Marshal.LINE.read(fr); } } catch(Exception) { //EOF } When the file I'm reading is about 4 mb, it seems to take a really long time. Is there a more optimized way of reading text files? I had no problem reading the file with fread in C and was wondering if there's anything like that in x10. Thanks, Han Dong University of Maryland Baltimore County Computer Science BS '10 ------------------------------------------------------------------------------ _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users