fixed bug with zero length strings
handling 0 array lenghts for fread/fwrite
Merge pull request #1 from drowe67/master

zero length string mods