有没有办法通过Flex比较文本文件? [英] Is there a way to compare text files through Flex?

查看:151
本文介绍了有没有办法通过Flex比较文本文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到一种方法来通过Flex比较两个文本文件,并在UI中显示差异。
是否有一个util或一种方法来做到这一点?

解决方案

您可以使用FileReference对象读取本地文件,所以答案是肯定的使用这个API你可以加载这些文件,但是比较它们并不是内置到框架中的一个功能,所以一旦文件被加载,你将不得不提供一个机制来做到这一点。



关于加载本地文件的更多信息可以在这里找到: http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/


I am trying to find a way to compare two text files through Flex and show that diff in the UI. Is there a util or a way to do that?

解决方案

You can read local files with the FileReference object, so the answer is yes. Using this API you can load the files, but comparing them is not a feature that is built into the framework, so you will have to supply a mechanism to do that once the files are loaded.

More on loading local files can be found here: http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/.

这篇关于有没有办法通过Flex比较文本文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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