Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi to everyone.I have some problem with files.
problem:I have multiple .x files.I need to read selected file and that file containing different methods in that methods i need only one method and that method should be added into another .x file. please any one help me.
Posted
Updated 29-Jan-10 22:44pm
v2

khareedusowjanya wrote:
I need to read selected file and that file containing different methods in that methods i need only one method and that method should be added into another .x file.


I am afraid this does not make it clear what you are trying to do, or what may be special about the format of .x files. Could you try and reword your question?
 
Share this answer
 
".x files are animation files.
i need to read that .x files.
in that .x files i have different name of methods.
i want read only one method in that file.
what i am reading file should be stored in another .x file"

First of all, don't post an answer unless you're posting an answer. Edit your post to add details.

What do you mean, they contain 'methods' ? Either way, to do this, you need to learn how the .x file format works, whatever that is. To read the file, use File.ReadAllBytes, but C# is going to give you the file contents, YOU need to write code to interpret that file and get the information you want in a format that is useful to you.
 
Share this answer
 
I just Googled this[^] and there are a number of references to .X file formats on the web. I suggest you try the same and go from there. Note, having browsed one of the file descriptions I think this is a non-trivial exercise, you may be better searching for a library that supports access to these file types.
 
Share this answer
 
.x files are animation files.
i need to read that .x files.
in that .x files i have different name of methods.
i want read only one method in that file.
what i am reading file should be stored in another .x file
 
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