ProDOS-Utilities/prodos/readblock.go

14 lines
171 B
Go
Raw Normal View History

2021-06-06 03:22:30 +00:00
package prodos
import (
"os"
)
func ReadBlock(file *os.File, block int) []byte {
buffer := make([]byte, 512)
file.ReadAt(buffer, int64(block)*512)
return buffer
}