ProDOS-Utilities/prodos/writeBlock.go
2021-06-05 23:22:30 -04:00

16 lines
235 B
Go

package prodos
import (
"fmt"
"os"
)
func WriteBlock(file *os.File, block int, buffer []byte) {
fmt.Printf("Write block %d\n", block)
file.WriteAt(buffer, int64(block)*512)
file.Sync()
fmt.Printf("Write block completed\n")
}