to access the file system in a web assembly, you use js interop and call the file api.
https://developer.mozilla.org/en-US/docs/Web/API/File
the main restriction is the code can only open a file with the <input type="file"> control, not by name. that is the use must select the file.
you use the FileReader to read a selected file:
https://developer.mozilla.org/en-US/docs/Web/API/FileReader
the other restriction is passing js binary (blob) data to blazor code. you will need to convert the blob to base64 (readAsDataUrl).