ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Example Code

Read and Write to Text File on Compact RIO or Single Board RIO

Code and Documents

Attachment

Download All

Introduction

This example shows how to use basic file I/O on a Compact RIO or Single Board RIO.

Steps to Complete

Set the file path for your device using the format c:\foldername\filename.txt.

RT - Write to File.png

RT - Read from File.png

Additional Notes

Remember, you can browse to a file on your remote RT system by opening a Windows Explorer and tpying in FTP://ipaddress

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors