Task: Implement file-based counter
-
Try to read the content of the file.
-
todo! if it succeeds
-
If it fails set the deault to 1
-
Then replace the todo by reading the file, converting the value to a number, incrementing by 1, writing to file.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Try to read the content of the file.
todo! if it succeeds
If it fails set the deault to 1
Then replace the todo by reading the file, converting the value to a number, incrementing by 1, writing to file.