Work
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
|||||||
"bufio"
|
"bufio"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -356,7 +355,7 @@ func (timerlist *TimerList) LoadFromFilename(filename string) error {
|
|||||||
|
|
||||||
// WriteToFilename writes a TimerList to the specified file (most likely called "timer.txt").
|
// WriteToFilename writes a TimerList to the specified file (most likely called "timer.txt").
|
||||||
func (timerlist *TimerList) WriteToFilename(filename string) error {
|
func (timerlist *TimerList) WriteToFilename(filename string) error {
|
||||||
if err := ioutil.WriteFile(filename, []byte(timerlist.String()), 0640); err != nil {
|
if err := os.WriteFile(filename, []byte(timerlist.String()), 0640); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
timerlist.ResetIds()
|
timerlist.ResetIds()
|
||||||
|
|||||||
Reference in New Issue
Block a user