blackberry中的文件处理
是否可以在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
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