JFile::read is deprecated