replace the FileStream class by macros.