Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dos not initialize todo.txt file if not exist #1

Open
madeindjs opened this issue Apr 4, 2019 · 0 comments
Open

Dos not initialize todo.txt file if not exist #1

madeindjs opened this issue Apr 4, 2019 · 0 comments

Comments

@madeindjs
Copy link

Out of the box, the project seem not working

$ ./build/linux64/todo ls
No items to do!
$ ./build/linux64/todo add "first"
Added "first" to todo.txt on line #1.
$ ./build/linux64/todo add "second"
Added "second" to todo.txt on line #1.
$ ./build/linux64/todo ls
No items to do!
$ ls todo.txt
ls: impossible d'accéder à 'todo.txt': Aucun fichier ou dossier de ce type

But since a create a todo.txt file, everything works fine

$ touch todo.txt
$ ./build/linux64/todo add "first"
Added "first" to todo.txt on line #1.
$ ./build/linux64/todo add "second"
Added "second" to todo.txt on line #2.
$ ./build/linux64/todo ls
 2: second
 1: first

Is it possible to create file if not exists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant