From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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