# Android - Writing Files over shared LAN folder

**URL:** https://discourse.processing.org/t/android-writing-files-over-shared-lan-folder/2801
**Category:** Processing for Android
**Created:** [August 20, 2018, 7:33pm UTC](https://discourse.processing.org/t/android-writing-files-over-shared-lan-folder/2801 "2018-08-20T19:33:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![KemyKo](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@KemyKo](https://discourse.processing.org/u/KemyKo)
#### Post date: [August 20, 2018, 7:33pm UTC](https://discourse.processing.org/t/android-writing-files-over-shared-lan-folder/2801/1 "2018-08-20T19:33:58Z")

</div>

The title says everything. I want to create and read files from my phone to my pc.

I created a folder in Documents/TestFolder  
Right Click -\> Properties-\>Share-\>Everyone(Read+Write).  
I am left with this: `//192.168.0.94/Users/TeoV/Documents/Apps/FolderTestLan/txtTest.txt`

I tried using createWriter(“see above”); from my pc and it successfully created the file. So i just guessed that it works from any pc connected to the same network.

But when i switched to the android version i got this:

`java.io.FileNotFoundException: /192.168.0.94/Users/TeoV/Documents/Apps/FolderTestLan/txtTest.txt (No such file or directory) at java.io.FileOutputStream.open0(Native Method) at java.io.FileOutputStream.open(FileOutputStream.java:287) at java.io.FileOutputStream.<init>(FileOutputStream.java:223) at java.io.FileOutputStream.<init>(FileOutputStream.java:171) at processing.core.PApplet.createWriter(PApplet.java:4863) at processing.core.PApplet.createWriter(PApplet.java:4853) at processing.test.bmw_mobile.BMW_Mobile.setup(BMW_Mobile.java:26) at processing.core.PApplet.handleDraw(PApplet.java:1846) at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:476) at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:516) FATAL EXCEPTION: Animation Thread Process: processing.test.bmw_mobile, PID: 17980 java.lang.RuntimeException: Couldn't create a writer for /192.168.0.94/Users/TeoV/Documents/Apps/FolderTestLan/txtTest.txt at processing.core.PApplet.createWriter(PApplet.java:4875) at processing.core.PApplet.createWriter(PApplet.java:4853) at processing.test.bmw_mobile.BMW_Mobile.setup(BMW_Mobile.java:26) at processing.core.PApplet.handleDraw(PApplet.java:1846) at processing.core.PSurfaceNone.callDraw(PSurfaceNone.java:476) at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:516)`

How can i read and write files over LAN with the android processing mode?
