General information
Title:
How to Read an Inaccessible File
Environment versions
Network:
Windows 2008 Server
In an earlier post I mentioned that I have a dual development role I have to develope and maintain a complex application in both Foxpro(first and about 7 years in the making-always adding new features) and Websphere. I use an AS400(iSeries) machine to store my data. Anyway I have a slight problem with file access. In one of the functions I build a cursor for a report. This process includes doing an Append General field to a RichText file. These files have been all along stored in a Network directory working fine. But now with the web based app I can not rely on anything I have tried as far as accessing the file short of storing the files on the iSeries box. But when I do this my FoxPro app has a hard and reliable time getting to the file as a share. This is due to security settings. I have created an FTP process(using a specific user ID) for writing the file. It works great for writing the file. But in the process I have a need to check that the file has been written and do a file open and close function on it this uses the local user id. For users that have security set correctly it all works good for others it fails. The same thing happens when the report I mentioned above is accessed. The file cannot be accessed by some using the share name.
My solution to both of these is to be able to use http to access the file but I don't know how using the fopen, fclose or Append General functions.
Is there some other way of doing all of this?
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only