java.io.FileNotFoundException: /wordlist.txt: open failed: ENOENT (No such file or directory)


Samebug tips

Check if android.permission.WRITE_EXTERNAL_STORAGE is in AndroidManifest.xml. Also, add checks in your code to see if the storage is available to write before trying to write. And last: create a folder to put your files inside.


4 months ago
Expert tip

Solutions on the web

Solution icon of stackoverflow
/wordlist.txt: open failed: ENOENT (No such file or directory)

Solution icon of github
via GitHub by PrafulAnand
, 4 months ago
: open failed: ENOENT (No such file or directory)

Solution icon of github
via GitHub by FindHao
, 11 months ago
/system/rootcheck.txt: open failed: ENOENT (No such file or directory)

Solution icon of stackoverflow
via Stack Overflow by Alexandru Mitu
, 1 year ago
/config.properties: open failed: ENOENT (No such file or directory)

Solution icon of stackoverflow
: open failed: ENOENT (No such file or directory)

Solution icon of stackoverflow
/./Key: open failed: ENOENT (No such file or directory)

Solution icon of stackoverflow
/etc/trustapp: open failed: ENOENT (No such file or directory)

Solution icon of stackoverflow
via Stack Overflow by Hyun I Kim
, 6 months ago
/1.png: open failed: ENOENT (No such file or directory)

Solution icon of web
via testin.cn by Unknown author, 1 year ago
/e:/fileName.txt: open failed: ENOENT (No such file or directory)

Solution icon of web
/AssetsDir/config.ini: open failed: ENOENT (No such file or directory)

Stack trace

java.io.FileNotFoundException: /wordlist.txt: open failed: ENOENT (No such file or directory)
	at libcore.io.IoBridge.open(IoBridge.java:409)
	at java.io.FileInputStream.<init>(FileInputStream.java:78)
	at java.io.FileInputStream.<init>(FileInputStream.java:105)
	at org.example.sudoku.Solver.<init>(Solver.java:20)
	at org.example.sudoku.GameActivity.onCreate(GameActivity.java:36)
	at android.app.Activity.performCreate(Activity.java:5133)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
	at android.app.ActivityThread.access$600(ActivityThread.java:141)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at android.app.ActivityThread.main(ActivityThread.java:5103)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:525)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
	at libcore.io.Posix.open(Native Method)
	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
	at libcore.io.IoBridge.open(IoBridge.java:393)
	... 18 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

4 times, 1 month ago
95 times, 4 months ago
167 times, 1 year ago
13 times, 1 week ago
Once, 3 months ago
45 more bugmates