.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 29th, 2004, 10:05 AM
cgi_pro cgi_pro is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 29 cgi_pro User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
XML Files as Database Files

Hello

I'm new to C#, but I already know some other languages like C, C++, and Perl. I have this project that I need to be done with by the mid of Jone. This project has to be written in C#, and the database files are all in XML language. C# already has external classes that are alreay built to deal with XML files as database files. You can include those classes by after the following codes:

Code:
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;


I already know how to read from an XML file, and how to write to an XML file. A read is done with a specific syntax scenario, as well as the writing format. So, it's not a big deal. However, I want to know further more about how to deal with XML files, such as:

1- How do I copy an entire XML file that exists in a specific directory to another? I'm seeking an answer that has a certain function that takes care of this rather than a for loop of reading single entries from the XML file and writing them to anothet file one by another.

2- How do I know if there is a certain file that exists in a certain directory?

3- How do I read a directory?

I'm appreciating the help of any of you guys.

Thanks in Advance.

Reply With Quote
  #2  
Old March 6th, 2004, 04:14 AM
adi881 adi881 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 8 adi881 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
This isn't a XML related question. You just have to deal with the System.IO namespace. Then you can move files, check if specified files exists, and do everything you asked. Just take a look at the System.IO namespace documentation from MSDN.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > XML Files as Database Files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT