search for: 001u

Displaying 1 result from an estimated 1 matches for "001u".

Did you mean: 0014
2004 Nov 16
2
win32-file: nread and nwrite
...o arguments, it works fine: fh = File.nopen("C:\\test.txt") p fh.nread -> "hello world" fh.close But, if I try to specify an argument, it seems to always want to return 9 to 11 bytes for some reason: fh = File.nopen("C:\\test.txt") p fh.nread(5) -> "hello\001u\002\003\000\002" fh.close How is it picking up these extra bytes? Let''s modify test.txt to add the strings "this is a test" and "1 2 3" on their own lines. Now, if we modify our code again to read, say, 15 bytes, it works fine: fh = File.nopen("C:\\test.tx...