Code:
//write -i test.txt hi
//write -i test.txt bye
//echo -a $lines(test.txt) == 2
//echo -a $read(test.txt,n,1) == hi
//echo -a $read(test.txt,n,2) == bye


Looks fine to me. When I run the code you pasted I get both lines in the file as well. Your problem must be coming from something else in your script that you aren't including in this post. Try the code you pasted here, you'll see that it writes both lines to the file.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"