C#
  Home arrow C# arrow Managing Files in C#
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
C#

Managing Files in C#
By: Barzan "Tony" Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 8
    2008-03-11

    Table of Contents:
  • Managing Files in C#
  • The Foundations
  • Copying, Moving, and Deleting
  • Renaming and File Attributes
  • Final Words

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Managing Files in C#


    (Page 1 of 5 )

    If you found this article, that means I don’t need to introduce the purpose of computer files. As a programmer, you’ll find that managing files is required almost everywhere regardless of the project. Working with files is really important because they store data. In this tutorial, we’re going to learn how we can copy, move, rename, delete, and grab the file attributes of a file, as the title suggests, in C#.

    Throughout this tutorial, I will assume that the reader is familiar with the syntax of C# and, therefore, will only explain in detail what each "new" function does and how to use them appropriately. Our project will use file managing functions as examples so that we will have some "real-world" proof of what they do as an end-result.

    The style of this article will be intuitive and pretty straightforward. I'm going to paste code snippets from the project and explain what these blocks of code mean. If it's a function, then I'll analyze its parameters, arguments, and so forth. Following along shouldn't be hard at all because we won't adopt a fast pace.

    We are going to finish this tutorial by attaching the archived source of this project. You may download it, see how it works, fiddle with it, and find out what you have missed or done wrong if you were struggling to make your application run. To clarify any confusion, I'll show you a screen shot at the beginning that points out the way I named the form components. This way, we can both work accordingly.

    This being said, I think we should move on. Launch Visual Studio and turn the page.

    More C# Articles
    More By Barzan "Tony" Antal


       · Thanks for tuning in to read this tutorial. I hope you've found it educational and...
       · Please provide Programme output.
     

    C# ARTICLES

    - Coding a CRC-Generating Algorithm in C
    - Cyclic Redundancy Check
    - Handling Methods and Functions
    - Destroying Objects in C#
    - Creating Objects in C-Sharp
    - Classes and Objects
    - Programming Languages: Managed versus Native
    - LINQ-to-MySQL with DbLinq in C#
    - Working with Dates and Times in C#
    - Generics, Dictionaries, and More
    - More About Generics
    - Working with C# Collections
    - Generics
    - C# and XML
    - Pointers and Arrays in C#





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek