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

how to make serde_json take ascii text from a json file #1116

Closed
moooichido opened this issue Mar 6, 2024 · 2 comments
Closed

how to make serde_json take ascii text from a json file #1116

moooichido opened this issue Mar 6, 2024 · 2 comments

Comments

@moooichido
Copy link

how to make serde_json take ascii text from a json file and output it to the terminal, only when I tried to make it take a file from a folder, I got an error that the file could not be found, although everything was perfect, help with this question, or a code example of how this can be implemented in place of this:

image

@moooichido
Copy link
Author

But when I try to do something like this, my program just crashes when I try to output this function in another function

image

@moooichido
Copy link
Author

moooichido commented Mar 6, 2024

I rewrote the code to this form, and it does not crash the program, but there is one thing, but, as I said, the program cannot find the path to the file, although it exists, and that’s the essence of the question, how to fix this?

image

It produces the following error, Error: The system cannot find the specified path. (os error 3)

image

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

No branches or pull requests

1 participant