有没有办法通过Flex比较文本文件? [英] Is there a way to compare text files through Flex?
问题描述
是否有一个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屋!