file using low-level functions found in unix.read() method but the thing my program doesn't know when to stop .-.
My USB has 8GB capacity. I started program at 5:00PM. Checked in at5:30 and apparently it was still running. When I stopped it, I noticed that I was done copying 25+ GB worth of data .-.
Is there a sort of end-of-file marker in device files or something?
AFAIK, there's only a starting offset and size. So... if I can just find the full size or some sort of ending condition of a file then that would be super helpful
since you are working with special device block files, The device eof marker is the end of disk size.
Обсуждают сегодня