Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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:
C#
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\");
           }

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.
Posted
Updated 1-Sep-15 21:07pm
v5
Comments
Thanks7872 1-Sep-15 7:32am    
Nobody will be writting code for you. What have you tried so far?
Arindom_chanda 1-Sep-15 7:49am    
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\");
}
Arindom_chanda 1-Sep-15 7:52am    
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.
Richard MacCutchan 1-Sep-15 7:50am    
What are .ff files, .gsc files, extract from where?
Please edit your question and provide proper details of your problem.
Arindom_chanda 1-Sep-15 7:56am    
Please check now

1 solution

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\");
 }
and stated
Quote:
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"));
is opening the file, as is
VB
using (var file = new SevenZipExtractor(@"C:\Users\Desktop\check\common.ff"))

Lose the line that starts FileStream fs = ... and try again
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900