提取.ff文件(快速文件)以使用C#查看里面的.gsc文件 [英] Extract a .ff files (fast files) to view .gsc files inside using C#

查看:70
本文介绍了提取.ff文件(快速文件)以使用C#查看里面的.gsc文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提取一个.ff文件(快速文件)来使用C#查看里面的.gsc文件。我找不到任何帮助。提前致谢。

包含.ff文件扩展名的文件最常用于各种游戏应用程序。通常称为快速文件,存储在FF文件中的信息将根据与文件关联的游戏而有所不同。

某些使用.ff文件扩展名的游戏包括Call职责4.

到目前为止,我试过这个:

I want to extract a .ff files (fast files) to view .gsc files inside using C#. I can't find any help. Thanks in advance.
Files that contain the .ff file extension are most commonly used by a variety of gaming applications. Commonly referred to as Fast Files, the information that is stored in the FF files will vary depending on the game that the file is associated with.
Some of the games that use the .ff file extension include Call of Duty 4.
So far i have tried this:

SevenZip.SevenZipExtractor.SetLibraryPath(@"C:\Users\Desktop\SevenZipSharp.dll");
using (var file = new SevenZipExtractor(@"C:\Users\Desktop\check\common.ff"))
           {
               file.ExtractArchive(@"C:\Users\Desktop\check\");
           }



但它显示以下错误:

SevenZipSharp.dll中出现未处理的System.ArgumentException类型异常

附加信息:扩展名ff不是支持的存档文件扩展名。



我需要一种方法来提取.ff文件。我不知道怎么办。


But it showing following error:
An unhandled exception of type 'System.ArgumentException' occurred in SevenZipSharp.dll
Additional information: Extension "ff" is not a supported archive file name extension.

I need a way to extract .ff files. I am not sure how can i do this.

推荐答案

您已发布以下代码

You have posted the following code
SevenZip.SevenZipExtractor.SetLibraryPath(@"C:\Users\Desktop\SevenZipSharp.dll");
 FileStream fs = File.OpenWrite(Path.Combine(@"C:\Users\Desktop\check", "common.ff"));

 using (var file = new SevenZipExtractor(@"C:\Users\Desktop\check\common.ff"))
 {
 file.ExtractArchive(@"C:\Users\Desktop\check\");
 }

并声明

Quote:

这是错误:

A mscorlib.dll中出现'System.IO.IOException'类型的第一次机会异常

附加信息:进程无法访问文件'C:\ Users \Desktop\check \ common。 ff'因为它正被另一个进程使用

Here is the error:
A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The process cannot access the file 'C:\Users\Desktop\check\common.ff' because it is being used by another process




The line

FileStream fs = File.OpenWrite(Path.Combine(@"C:\Users\Desktop\check", "common.ff"));

打开文件,

using (var file = new SevenZipExtractor(@"C:\Users\Desktop\check\common.ff"))



失去开始的行 FileStream fs = ... 然后重试


这篇关于提取.ff文件(快速文件)以使用C#查看里面的.gsc文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆