mirror of
https://github.com/tjboldt/ProDOS-Utilities.git
synced 2024-06-09 12:29:28 +00:00
16 lines
235 B
Go
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")
|
|
}
|