Menu

Clarion REMOVE command

Help
2011-12-19
2013-03-18
  • nenad cikic

    nenad cikic - 2011-12-19

    I am doing writing to ascii file and while testing I have noticed the following:
    The REMOVE(path_to_file) removes the file even if it is readonly.
    The ADD(ascii_file) correctly does not add the row to the end of the ascii file if the file is readonly.

    In clarion win32 REMOVE wouldn't erase readonly file.
    Not important, just wanted to point out.
    In fact, in my case erasing readonly file is OK for me:)

    Nenad

     
  • Andrew Barnham

    Andrew Barnham - 2011-12-19

    Looks like c2j inherited java convention, which follows unix convention. readonly flag means you cannot access files contents, but you can delete the file.  To prevent deletion/unlinking of a file, you need to make the containing directory readonly.

    I think I prefer  java convention, so I'll leave it as is for now.

     

Log in to post a comment.

Auth0 Logo