Rodd,
Try to open file read/write.
lhFile = fopen(lcFileName,12)
>I have an app that monitors a specific directory. My users print documents to file into that directory (.pcl files). When my program notices a .pcl file in the dir, it tries to convert the .pcl to .pdf.
>
>My problem is that some of the .pcl files are very large and take a while to create. My program notices the file and begins to try to convert even though the printing has not yet finished.
>
>I've tried to check for a file still being created by doing the following:
>
>
>lhFile = fopen(lcFileName,10)
>if lhFile = -1
> Loop
>else
> ... do the conversion
>endif
>
>
>However, for some reason this doesn't seem to be catching the fact the the file is still being created.
>
>Any more ideas? Thanks for whatever help you can offer!
--sb--