Announcement

Collapse
No announcement yet.

File Handle

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

  • Mel Bishop
    replied
    Jerry, I never even saw that in the documentation. Thanks.

    Tom, old habits die hard. Oops.


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

    Leave a comment:


  • Tom Hanlin
    replied
    Make sure that "close #1" is actually "close #y".

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Leave a comment:


  • Jerry Fielden
    replied
    Have you looked under FILEATTR Function, it says File Number is
    the handle of a currently open file.

    FILEATTR(FileNumber%, 2) returns a file's dos handle.

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


    [This message has been edited by Jerry Fielden (edited February 19, 2002).]

    Leave a comment:


  • Mel Bishop
    started a topic File Handle

    File Handle

    Can somebody tell exactly what a "file handle" is and how it is
    extracted? If I have the following code:

    y = freefile
    open "somefile.txt" for binary as y
    ...
    ...
    close #1

    Now I know that (y) is not the DOS handle of the file but I need
    to know how it is determined so I can use some interrupt 21 calls.
    I have looked all over the place but can't seem to find it.

    Thanks.




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