# FTP: create new text file & save fileContent

**URL:** <https://discourse.processing.org/t/ftp-create-new-text-file-save-filecontent/6250>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [December 3, 2018, 10:30am UTC](https://discourse.processing.org/t/ftp-create-new-text-file-save-filecontent/6250 "2018-12-03T10:30:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wieb](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@wieb](https://discourse.processing.org/u/wieb)\
**Post date:** [December 3, 2018, 10:30am UTC](https://discourse.processing.org/t/ftp-create-new-text-file-save-filecontent/6250/1 "2018-12-03T10:30:14Z")

</div>

Hi everyone,

Is it possible creating a new text file (which contains some string) on the fly then save it to FTP server with Processing?

```auto
string fileContent = "test 12345 test 12345 test 12345 test 12345";
char fileName = "test.txt";

```

fileContent from sensor data on Arduino ESP8266 which doesn’t have SD Card module attached to it.

Is it possible directly write a new text file (including fileContent) to FTP server with Processing?

How to do it?

I am not real programmer, just copy paste programmer.

Hoping someone with better knowledge than me would reply, guide me please.

Thanks for the helpers! 🙂

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [December 7, 2018, 12:55am UTC](https://discourse.processing.org/t/ftp-create-new-text-file-save-filecontent/6250/2 "2018-12-07T00:55:45Z")

</div>

I remember seeing an old example that uses FTPClient:

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/6210/run-at-specific-time)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

but you can also do an FTP mount at the OS level, or call an FTP command line with `exec()` – there are a lot of options.

Other old discussions:

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/26504/how-to-login-to-my-ftp-account)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

  

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/7124/text-to-ftp-server)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.
