I have one file, and I need everything that is written in some time frame to that file to be written to a second file.
What is the best way to do so? Open some thread that will read the file and do so ?
Any ideas ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
teeutility might be what you’re looking for:Sample run: