同时读取/写入文件 [英] Read/Write on a file at the same time

查看:109
本文介绍了同时读取/写入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专家,

我正在使用控制台应用程序

问题是我想从另一个程序同时写入的日志文件中连续读取.因此,一个程序正在连续写入,而另一个程序正在从同一文件连续读取.

我需要一些建议来实施它的可能解决方案.

因此,它会自动更新.

任何建议都会很棒!

谢谢
RA

Hi experts,

I am working with Console Application

The problem is I want to CONTINUOUSLY read from a log file which is being written by an other program at same time . So, one program is continuously writing and other is continuously reading from same file.

I need suggestions what are the possible solutions to implement it.

So, that it is updated automatically.

Any suggestions will be great!

Thanks
RA

推荐答案

文件共享模式将为您提供帮助

见下面的链接
http://msdn.microsoft.com/en-us/library/y973b725.aspx [ ^ ]
谢谢
--RA
File Shared mode will help you

See the below link
http://msdn.microsoft.com/en-us/library/y973b725.aspx[^]
Thanks
--RA


这篇关于同时读取/写入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆