Eugen Graf Posted July 21, 2007 Report Share Posted July 21, 2007 Hello, can anybody say me why I get a File Permission Error here? http://forums.lavag.org/index.php?act=attach&type=post&id=6414 I think, I know why. The VI Read From Text File creates a reference to a Read-Only File. So I have either to open file with Read-Write-Permissions at the begin or Have to close the reference after reading. It's right? Eugen So, here is one which works without errors. http://forums.lavag.org/index.php?act=attach&type=post&id=6417 Quote Link to comment
jzoller Posted July 21, 2007 Report Share Posted July 21, 2007 Hi Eugen, I think you are correct, the Read From Text File appears to open files directly in a Read-Only mode. As you said, you can correct this by explicitly opening the file using Open/Create/Replace File with the Read/Write option enabled, then feeding the resulting refnum into the Read From Text File. Not giving the read/write mode option on the Read From Text File primitive seems kinda silly, since the function spits out a refnum. Of course, having hard-to-spot right click options on the primitive seems like a step backwards as well I guess it depends who's using the primitive. Joe Z. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.