var reader = new FileReaderSync();
Inheritance HierarchyThe FileReaderSync does not inherit from any class or interface.
The FileReaderSync object has these types of members:
The FileReaderSync object has these methods.
Important The FileReaderSync object's read methods (readAsText, readAsDataURL, and readAsArrayBuffer) have the same name as the read methods of the FileReader object but they perform synchronous ream operations and return the read data.
The FileReaderSync object throws exceptions when read errors are encountered.