Converted ReadFile and WriteFile to FileAccessor