CompuServe Messages

#Finding file size

    07-Oct-92 20:44:38
Sb: #Finding file size
Fm: tom miller 72760,3055
To: ALL
I am writting a program that is started from WB and takes other file icons as input from the extended select option. What I want to do is find out the size of each of these file arguments. I don't want to use an AmigaDos command nor do I want to open the file – go to the end – and check file pointer posistion. I have looked and looked and all that I can find on this is the FileInfoBlock structure. From the little that is written I have setup a memory slot for the structure, then called AllocDosObject(), the Examine(), and finally looked for the size. I can't get things to work. I think the problem is with the Alloc— function. I don't think I'm setting it up correctly. Can someone give me an example? Also, everything here is part of the dos library. I can find almost nothing about this library. It's not in the RKMs nor on any instruction disk I have. Where can I get something on dos.library with examples on doing things with it. -Tom