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

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

问题描述

我试图找到一种方法来通过 Flex 比较两个文本文件并在 UI 中显示该差异.是否有实用程序或方法可以做到这一点?

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?

推荐答案

您可以使用 FileReference 对象读取本地文件,所以答案是肯定的.使用此 API,您可以加载文件,但比较它们不是框架内置的功能,因此您必须提供一种机制来在加载文件后执行此操作.

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.

有关加载本地文件的更多信息,请访问:http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/.

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天全站免登陆