added do not skip any data if file length is 0