Announcement

Collapse
No announcement yet.

Error 70: Permission Denied

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Michael K. Dealey
    replied
    Maybe turn off your anti-virus program (especially if it's Norton) and try again. I had something very similar to this happen. Although I got no error, I got no results. The read and write operations were just skipped until I turned off my antivirus. It drove me nuts for days.

    -Michael.

    Leave a comment:


  • Mel Bishop
    replied
    If the code is 100% yours and does not contain any 3rd party
    routine(s), it's perfectly safe to post your code.


    ------------------

    Leave a comment:


  • Robert E. Carneal
    replied
    No I can't say with 100% certainty that it occured [b]during[/b the read.

    However, I can say with 100% certainty that in the debugger, I get
    past the OPEN statement. It <U>acts</U> as it the error occurs at
    the "while not EOF(1)" statement, but the debugger flies through
    it I can't tell if that is the culprit or the next statement.

    I could post the code, and don't mind. I remember PowerBasic
    scolding someone for doing that, though, since it contained
    copyrighted code. Hence, I have a little fear of doing so. It is
    just a short program, with more to be added later. The "hurdle"
    is being able to read the file at all. I don't think I used
    anything copyrighted. I will take your advice- should I post the
    code and if I do, is it safe?

    Thank you.

    Robert

    ------------------

    Leave a comment:


  • Michael Mattias
    replied
    You sure the error didn't occur on the OPEN, rather than the READ? (Code showing how you tested the error conveniently not shown).

    You'd get an error 70 if your open mode (also conveniently not shown) were inconsistent with the read-only attribute.

    You could also get a spurious error 70 if some prior error in your program (you guessed it) were not handled at that time.


    MCM


    Leave a comment:


  • Robert E. Carneal
    started a topic Error 70: Permission Denied

    Error 70: Permission Denied

    I have written a program to remove extranenous spaces in a space
    delimited data file. The file is huge, 13.89MEG, and I think I can
    cut the size down to a third of that (or more) just by removing
    extranenous spaces.

    The code compiles fine, but when I test it to read the first line,
    I get an Error 70: Permission denied error.

    I thought Error 70 in Powerbasic occurred when [u]writing[/b] to a file,
    that you do not have permission to do so, not simply reading the
    file. I checked the attributes and it is set to Read Only. Is that
    a problem?

    Thank you.

    Robert

    ------------------
Working...
X