Steve, Thanks for the help. However, #undef HAVE_MMAP does not do the job. I still have to eliminate the struncate to get rid of the nulls. I have got to go and fall over now but will pick this up again tomorrow. Any ideas that you have would be welcome. Best regards Paul