Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
blackberry中的文件处理_Blackberry - Fatal编程技术网

blackberry中的文件处理

blackberry中的文件处理,blackberry,Blackberry,是否可以在blackberry中以追加模式打开文件?连接器类中有读、写、读、写常量,但我没有找到任何附加模式的常量。这是可能的,尽管它不是单独的模式: FileConnection fc = (FileConnection) Connector.open(pathToFile, Connector.READ_WRITE); OutputStream out = fc.openOutputStream(fc.fileSize()); // Now you can write to the outp

是否可以在blackberry中以追加模式打开文件?连接器类中有读、写、读、写常量,但我没有找到任何附加模式的常量。

这是可能的,尽管它不是单独的模式:

FileConnection fc = (FileConnection) Connector.open(pathToFile, Connector.READ_WRITE);
OutputStream out = fc.openOutputStream(fc.fileSize());
// Now you can write to the output stream and it will append to the end of the file