Jump to content

Unexpected File Permission Error


Recommended Posts

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

Link to comment

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 :wacko: I guess it depends who's using the primitive.

Joe Z.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.