There is no completely standardized way to do this; the most portable solution is to open a temporary file, write data to it, and hand it to the lexer. Here's a sample bit of code to do this.
对此没有完全标准化的方法;最轻便的方法是打开一个临时文件,将数据写入到这个临时文件,然后将它交给lexer。
And Amplifeeder can also generate a nice, data-portable XML file for users to backup all their social stream's data; XML files can also be used to restore data.
Amplifeeder还可以为用户生成一个可携带数据的XML文件,以备份社会化数据流。XML文件还能用来恢复数据。
Usually, we save data in databases. However, if we want to make the data more portable, we can store the data in an XML file.
通常,我们把数据保存在数据库里。然而,如果想让数据更易于传送,可以把数据存在XML文件里。
应用推荐