Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2008 > C# 2008 aka C# 3.0
|
C# 2008 aka C# 3.0 Discuss the Visual C# 2008 (aka C# 3.0) language
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2008 aka C# 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 16th, 2008, 10:04 PM
Registered User
 
Join Date: Aug 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Curious about file formats

Say I wanted to save data from my app. I don't want to use a database or xml. Maybe I want to save it to my own file format like microsoft does with .doc files. How does one go about that and is it a good way to store program information if you don't want to use a database.

thanks
 
Old December 16th, 2008, 10:21 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Google is a fantastic resource: http://www.google.com/search?hl=en&r...es&btnG=Search

From the SERP:

http://www.c-sharpcorner.com/UploadF...mFileType.aspx

hth.
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
 
Old December 17th, 2008, 09:37 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Why not use a standard format? There are many more tools available for working with standard formats. Unless you have extreme security needs it doesn't make sense to me to use valuable development time to create and maintain a storage scheme/format. Instead focus your energy on developing your domain specific solution. There are certainly ways to secure data in standard formats using existing encryption methods so you can still protect data stored in common formats.
__________________
-Peter
compiledthoughts.com
twitter/peterlanoie
 
Old December 18th, 2008, 09:55 AM
Friend of Wrox
 
Join Date: Sep 2008
Posts: 234
Thanks: 0
Thanked 32 Times in 30 Posts
Default Which file type to use

The type of file that makes sense depends upon what you plan on storing and how will it be accessed. For example, if you're just writing memos or emails that don't require updating (perhaps you just rewrite them), a standard sequential text file is perfect. On the other hand, if you are doing a small "client" app where demographic data (e.g., name address, etc.) must be updateable, fixed record length random access files offer a viable solution. Such random access files can be searched and updated quickly, but don't have the associated overhead of a fullblown DBMS. Chapter 13 in my book lays this out and also gives some thoughts on when to use sequential, random access, or DBMS files during the design stage.

While obviously I'd like you to buy the book, make a trip to your local bookstore and thumb through Chapter 13 and see if it might help.

Dr. Purdum
__________________
Jack Purdum, Ph.D.
Author: Beginning C# 3.0: Introduction to Object Oriented Programming (and 14 other programming texts)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Curious image map issue... can you help? BananaJim Javascript 2 November 29th, 2006 03:10 PM
curious problem with W3C validator spineynorman HTML Code Clinic 1 April 3rd, 2006 08:20 PM
Curious Colonel Angus VB.NET 5 April 13th, 2005 10:11 PM
About Message formats abdul_owiusa C# 3 August 10th, 2004 12:46 PM
Handle different text file formats in Biztalk Lavanya Biztalk 1 July 26th, 2004 03:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.