| | |
[C#:Help] Program Specific Files
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2008
Posts: 33
Reputation:
Solved Threads: 1
Aside from many projects I'm working on to learn more about general programming and this language it self. I was wondering how do programmers create "program specific files".
Examples:
Microsoft Word has .doc type files.
Adobe Acrobat Reader has .pdf files.
Photoshop has .psd files.
On a current project I'm working on I have data that gets saved to a file called .nex reason for that specific extension is because that is the name of the Project that file is used. Anyways the way I am currently doing this is encrypting the data using an RC4 Stream Cipher then putting that data into a stream writer and saving it to a file. I was wondering is this sufficient? Is it the way to do things and if so how would I go about creating a program specific file system for my project. The data that is stored within these files is nothing of great importance to any user but if they were to alter the data it will most defiantly have a drastic effect on the program its self.
Anyways all help is greatly appreciated for those that think I'm double posting. I just had to get these thoughts out of my head all at once to avoid losing them as I tend to forget things as my life is quite busy...
Thanks again,
- Poab
Examples:
Microsoft Word has .doc type files.
Adobe Acrobat Reader has .pdf files.
Photoshop has .psd files.
On a current project I'm working on I have data that gets saved to a file called .nex reason for that specific extension is because that is the name of the Project that file is used. Anyways the way I am currently doing this is encrypting the data using an RC4 Stream Cipher then putting that data into a stream writer and saving it to a file. I was wondering is this sufficient? Is it the way to do things and if so how would I go about creating a program specific file system for my project. The data that is stored within these files is nothing of great importance to any user but if they were to alter the data it will most defiantly have a drastic effect on the program its self.
Anyways all help is greatly appreciated for those that think I'm double posting. I just had to get these thoughts out of my head all at once to avoid losing them as I tend to forget things as my life is quite busy...
Thanks again,
- Poab
Last edited by Poab9200; Jul 26th, 2009 at 11:40 pm. Reason: Spell Check
•
•
Join Date: Aug 2008
Posts: 83
Reputation:
Solved Threads: 18
One thing I might recommend, is adding some header information to the file. It may not be necessary for your needs, but you may want to simply add some version information, just in case you modify the way data is stored in that file extension. Then you can check that the files you are using are compatible with your current implementation. Otherwise you may get some undesirable results with older formats. Other than that, I can't think of anything else you'll really need.
i think serialization should serve the purpose.
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
•
•
Join Date: Aug 2008
Posts: 33
Reputation:
Solved Threads: 1
Hmm, I knew about the header/footer but I will most definatly add version information to the header to help keep better track of the versions of files. Thanks for that tip!
Also I read a couple articles about serialization and I was wondering, will anyone with the knowledge just be able to UN-serialize the object? Or when you serialize the object is it program specific?
I know that no matter how hard anyone tries to keep people from getting into data that is saved by any program that the developers want to keep secret that there are always ways around everything when it comes to software.
Thanks for the help,
- Poab
Also I read a couple articles about serialization and I was wondering, will anyone with the knowledge just be able to UN-serialize the object? Or when you serialize the object is it program specific?
I know that no matter how hard anyone tries to keep people from getting into data that is saved by any program that the developers want to keep secret that there are always ways around everything when it comes to software.
Thanks for the help,
- Poab
![]() |
Similar Threads
- Wrong Default Program Opening .dll Files (Windows Vista and Windows 7)
- 301 Redirect all .htm but Exclude Specific Files, Directory (IT Professionals' Lounge)
- Deleting files by day of week (C++)
- Need Help >> I Give Up , Cant Do This Program :'((( (Java)
- I'm back...More problems, different program (C++)
- help trendmicros housecall quarantine files (Viruses, Spyware and other Nasties)
- Smart partitioning; Program files on separate partition or on separate drive? (Storage)
- looking to remove user access to specific program (Windows NT / 2000 / XP)
- Audio File Matching Program (C++)
- Show Hidden Program or System Files (Windows tips 'n' tweaks)
Other Threads in the C# Forum
- Previous Thread: [C#:Help] Card Game : War
- Next Thread: C# Web Browser -- All in Code
| Thread Tools | Search this Thread |
.net access algorithm api array asp.net barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom database databaseconnection datagrid datagridview dataset datetime dbconnection degrees design development draganddrop drawing encryption enum event eventhandlers excel file firefox form format forms function gdi+ httpwebrequest image index input install java label libraries list listbox loop mandelbrot marshalbyrefobject math mouseclick movingimage mysql mysql.data.client operator path photoshop php picturebox pixelinversion platform post programming radians regex remoting resourcefile richtextbox server sleep socket sql statistics stream string study system.servicemodel table tcpclientchannel text textbox thread time timer update usercontrol validation visualstudio webbrowser windows winforms wpf xml





