http://qs321.pair.com?node_id=1171137


in reply to Re^2: Got some problem with read write file
in thread Got some problem with read write file

I think that choroba's code should work fine (although I haven't tested it). Please show the code that you're using, there must be a slight mistake somewhere.