I have been asked to try to program a ftp file stream in python. Here's the complete story:
There's a FTP server with a comma seperated file (csv) on it. A device writes log information in to the csv file whenever something log-worthy occures. This csv file is around 22 MB and keeps on growing. I want to read the latest csv entry that's gotten in to the file. So my question is:
Is it possible to connect to the FTP server, open up a stream to the csv file and retrieve the latest data? I have to able to get a constant stream and always get the latest csv entry.
If this is possible wont there be a conflict when the device is writing to the .csv file and i'm reading from it?
If this isn't possible in python, do you have any idea if it is in another programming language?
Hope i explained everything well enough.
Thanks in advance.