-
Notifications
You must be signed in to change notification settings - Fork 20
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
open file i GetCacheDir bad fopen mode "rt" #18
Comments
Hi, my memory isn't very fresh on all this, but I know that raylib internally uses its "own version" of
Edit: But it’s normal to use "rt" to open a text file, "rt" opens a file for reading in text mode and handles newline translations, for example. Try |
you're right it is not related to "rt" mode but with: |
@GreenSnakeLinux I just reviewed your contribution, and aside from a few minor things to address, it looks great! Thank you again! |
Completed with: #19 and 9ea2fe1 Thanks again @GreenSnakeLinux ! :) |
Hello,
When I want to read a file in cache folder using GetCacheDir()
I need to use: fopen(fileName, "r");
because LoadFileText(fileName) use mode "rt" and return "Failed to open text file"
Why use "rt" ? Strangely, files open in asset folder is working with LoadFileText and mode "rt" but not with "r"
The text was updated successfully, but these errors were encountered: