Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 17865

Re: How to use SD card

$
0
0

As suspected, no problem accessing the onboard SD card slot with Python.  Here's quick & dirty Python program that reads a text file from the card and writes it out to a new file on the card.

 

fileIn=open('/media/sdcard/input.csv','r')

fileOut=open('/media/sdcard/output.txt','w')

 

# infinite loop until EOF is reached

while 1:

    line=fileIn.readline()

    if not line: break

   

    fileOut.writelines(line)

   

fileIn.close()

fileOut.close()


Viewing all articles
Browse latest Browse all 17865

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>