May 31, 2009, 6:55 AM
Post #4 of 13
Your question isn't very clear.
Re: [kenshin] comparing the difference in one text file
[In reply to]
Are you saying that you want to scan/monitor the files in a directory and any changes made to those files get duplicated in the record.txt file?
If so, then you'll need an additional file that stores the byte offset each time you read the file and then seek to that point on the next time it's read. Then from that point to eof, you append that data to the record.txt file.
perldoc -f sysopen
perldoc -f sysread
perldoc -f syswrite
If that's not what you're asking, then please rephrase your question.
(This post was edited by FishMonger on May 31, 2009, 6:56 AM)