You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Program
read() // Read metadata
allocate bytes
read() // Read data
Now, we first need to read a 4 byte metadata at the beginning of the file to figure out how many more bytes we want to read from the file i.e., we need to issue multiple read calls to the file descriptor.
The first read() will return # Bytes, but in the current implementation the subsequent read call will fail as it assumes the file has already been read and it will return 0 bytes.
You need to main a seek pointer for each file descriptor within the VirtualFS (just like libc would).
Describe the bug
Jupiter does not seem to be able to read binary files
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
It does not appear like an attach a binary file here.
Screenshots
If applicable, add screenshots to help explain your problem.
Jupiter (please complete the following information):
Additional context
When you fread from a binary file,
e.g., txt file (convert to binary before trying to fread).
5 3
1 -3 4
46 -2 -5
2 -62 0
1 3 13
26 -7 34
The first fread returns 5, but subsequent fread returns 0.
The text was updated successfully, but these errors were encountered: