同步文件,从而同步对象? [英] Synchronize files, and thus objects?

查看:79
本文介绍了同步文件,从而同步对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hey Codeproject,



我有两个应用程序都在同一个文件上工作。该文件是序列化的类文件,在运行时用作对象(类)。我想让两个应用程序通过像Dropbox这样的云共享服务使用相同的文件。



我对此有几个问题:

- 如何在不关闭流的情况下让客户端写入和读取同一文件?

- 我如何让我的应用程序识别文件中的特定更改,并更新对象中的更改必须完全重制对象?

- 那里有没有这样的工具,如果没有,你可以帮帮我吗?



作为一个例子,能够在将文件保存在其他位置的同时处理同一文件的是Google Docs。



问候,

- Deviant

Hey Codeproject,

I have two applications that are both working on the same file. The file is a serialized class file, which at run time is used as an object(class). I want to let the two applications use the same file through a cloud-sharing service like Dropbox.

I had a few questions regarding this:
- How would I let the clients write and read to the same file without closing a stream?
- How would I let my application recognize specific changes within the file, and update those in the object without having to completely remake the object?
- Are there any tools like this out there, and if not, could you help me out?

As an example on being able to work on the same file while keeping the file at another location is Google Docs.

Regards,
- Deviant

推荐答案

这篇关于同步文件,从而同步对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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