# Reading/Writing to csv file in an external device

**URL:** <https://discourse.nodered.org/t/reading-writing-to-csv-file-in-an-external-device/64602>\
**Category:** Industrial\
**Created:** [2 July 2022 04:19 UTC](https://discourse.nodered.org/t/reading-writing-to-csv-file-in-an-external-device/64602 "2022-07-02T04:19:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinesh](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@dinesh](https://discourse.nodered.org/u/dinesh)\
**Post date:** [2 July 2022 04:19 UTC](https://discourse.nodered.org/t/reading-writing-to-csv-file-in-an-external-device/64602/1 "2022-07-02T04:19:43Z")

</div>

Hi,

Currently, I am able to read/write csv data directly within the local device.

However, I am trying to read/write csv file from external device(PC with a shared folder) within the network. I am able to ping the external device.

My doubt is how to set the file name(which includes the external device IP) in the file node.

thank you

![drive im](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/9722f75638dc9025e277b050ad5f649ed598cfe6.png)  
[flows (45).json](https://discourse.nodered.org/uploads/short-url/nko9LeuGGzdyGPZ8OTYS9s8tvy8.json) (2.3 KB)

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [2 July 2022 06:27 UTC](https://discourse.nodered.org/t/reading-writing-to-csv-file-in-an-external-device/64602/2 "2022-07-02T06:27:31Z")

</div>

Why not mount the WIndows share on the Linux box that is running NR - have this mount in your fstab file so it happens when the system restarts

You could (for instance) have it mounted at /mnt/TestingIOTW and then access that as a normal path in Linux

```auto
https://linuxize.com/post/how-to-mount-cifs-windows-share-on-linux/#:~:text=To%20automatically%20mount%20a%20Windows,point%20on%20the%20local%20machine.

```

Craig

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 July 2022 05:26 UTC](https://discourse.nodered.org/t/reading-writing-to-csv-file-in-an-external-device/64602/3 "2022-07-21T05:26:51Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
