>>>>> "D" == Daniel Berger <djberg96 / gmail.com> writes:

 Try it with

D> fh = File.open('flock_test.txt', 'w')

   fh = File.open('flock_test.txt', 'w+')


Guy Decoux