凭证索取服务使用一个平面文件适配器来从文件系统中读写附件。
The claim check service USES a Flat file adapter to write and read attachments from the file system.
仔细检查函数中所有使用的变量,如果有一个变量不是当前作用域定义的,而且使用了不止一次,那么我们就应该把这个变量保存在局部变量中,而使用这个局部变量来进行读写操作。
Watch the variables being used in a function. If you notice a function using an out-of-scope variable more than once, store it in a local variable and use that instead.
在大部分情况中,如果您希望可以使用更高级的库(举例来说,使用stdio,而不是原始的读写操作),就应该这样做;这可以帮您更好地回避这些问题。
In most cases, if what you want can be done with a higher-level library (stdio instead of raw reads and writes, for instance), you should do that; it gives you more insulation from possible quirks.
应用推荐