Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ROng1
Novice
1,125 Views

How to read and write text file locally?

Jump to solution

Hello, I wonder if it's possible to read/write a text file to local drives (i.e. C or D etc.) without using SD Card built-in from the Intel Galileo Gen 2 board. If I use the built-in SD card library and module, it's working but I need to communicate from the PC drive as storage. I am sending values from the web to PC by creating text file as my database and read the value using the board.

Thank you in advance.

0 Kudos
1 Solution
FTinetti
Honored Contributor I
80 Views

geonyt wrote:

Hello, I wonder if it's possible to read/write a text file to local drives (i.e. C or D etc.) without using SD Card built-in from the Intel Galileo Gen 2 board. If I use the built-in SD card library and module, it's working but I need to communicate from the PC drive as storage. I am sending values from the web to PC by creating text file as my database and read the value using the board.

Data stored in computing systems other than the Intel Galileo are not directly available, as usual. Thus, Intel Galileo processes/sketch will not be able to read/write data/text file in other computer local drives.

... I am sending values from the web to PC by creating text file as my database and read the value using the board.

Depending on how you are sending values to the PC as an "intermediate" system perhaps you'll be able to send those values directly to the Intel Galileo in case the Intel Galileo is directly connected to the web. Otherwise, you could use rather low-level mechanisms such as scp from the PC to the Intel Galileo... but it depends on how frequent, how many, etc. data you have to transfer form the PC to the Intel Galileo.

HTH,

Fernando.

View solution in original post

3 Replies
FTinetti
Honored Contributor I
81 Views

geonyt wrote:

Hello, I wonder if it's possible to read/write a text file to local drives (i.e. C or D etc.) without using SD Card built-in from the Intel Galileo Gen 2 board. If I use the built-in SD card library and module, it's working but I need to communicate from the PC drive as storage. I am sending values from the web to PC by creating text file as my database and read the value using the board.

Data stored in computing systems other than the Intel Galileo are not directly available, as usual. Thus, Intel Galileo processes/sketch will not be able to read/write data/text file in other computer local drives.

... I am sending values from the web to PC by creating text file as my database and read the value using the board.

Depending on how you are sending values to the PC as an "intermediate" system perhaps you'll be able to send those values directly to the Intel Galileo in case the Intel Galileo is directly connected to the web. Otherwise, you could use rather low-level mechanisms such as scp from the PC to the Intel Galileo... but it depends on how frequent, how many, etc. data you have to transfer form the PC to the Intel Galileo.

HTH,

Fernando.

View solution in original post

ROng1
Novice
80 Views
FTinetti
Honored Contributor I
80 Views

Welcome, glad to help,

Fernando.

Reply