简体   繁体   中英

Ruby: Reading Unsaved Text File

I have a RFID scanner program in Windows writing its results to a sample text file. However the program does NOT save the file. Is there any way in Ruby that I can read in these changes made to the text file even though they have not been committed?

. You can not .

Can the RFID program be setup to send it's data to any arbitrary program? Because if so, then I'd say your best bet is to start by writing a program that it can send to that would do something sensible with the data (like write it to a file), instead of using Notepad as part of your process.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM