No problem.

### original file
test.exe < testfile_dos2.txt
Read 36 characters:
"12345678
12345678
12345678
12345678
"
Read 18 characters:
"12345678
12345678
"

### insert a character
test.exe < testfile_dos2.txt
Read 36 characters:
"a12345678
12345678
12345678
12345678"
Read 19 characters:
"
12345678
12345678
"

### remove first character
test.exe < testfile_dos2.txt
Read 36 characters:
"2345678
12345678
12345678
12345678
1"
Read 17 characters:
"2345678
12345678
"


Am 2016-05-13 20:58, schrieb Gregory J. Ward:
Thanks, Schorsch,

Would you mind adding the final tests, where you add a character and
remove a character from the beginning of testfile_dos2.txt to see what
happens?  I should have explained that better in my post.

-Greg

From: Georg Mischler <[email protected]>
Date: May 13, 2016 10:28:31 AM PDT

I didn't actually look very closely at your test code before, going for the
real thing first. But now I see what you're trying to figure out.
We couldn't have caught our bug that way, but other than that your prediction
is quite correct:

test.exe < testfile_unix.txt
Read 40 characters:
"123456789
123456789
123456789
123456789
"
Read 20 characters:
"123456789
123456789
"

test.exe < testfile_dos.txt
Read 37 characters:
"123456789
123456789
123456789
1234567"
Read 23 characters:
"89
123456789
123456789
"

test.exe < testfile_dos2.txt
Read 36 characters:
"12345678
12345678
12345678
12345678
"
Read 18 characters:
"12345678
12345678
"

Cheers
-schorsch


_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev

--
Georg Mischler  --  simulations developer  --  schorsch at schorsch com
+schorsch.com+  --  lighting design tools  --  http://www.schorsch.com/

_______________________________________________
Radiance-dev mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-dev

Reply via email to