.NET
  Home arrow .NET arrow Page 6 - Utilize the Full Functionality of the Whid...
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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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? 
.NET

Utilize the Full Functionality of the Whidbey File Management
By: Benoyraj Baskaran
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 5
    2004-08-17

    Table of Contents:
  • Utilize the Full Functionality of the Whidbey File Management
  • Classes that Supports System.IO.namespace
  • More Classes and Public Methods
  • Public Methods with File Class
  • FileStream and Other Classes
  • IOException Class and Others
  • System.Security.Permissions
  • Mode, Share and Access of Files

  • 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


    Utilize the Full Functionality of the Whidbey File Management - IOException Class and Others


    (Page 6 of 8 )

    17. The InternalBufferOverFlowException class throws exception when the buffer overflows during execution of the programs.  It supports some of the public methods as shown in the FileLoadException class except FusionLog and FileName, which you saw above.

    18. The IOException class throws exception when Input/Output error occurs. It supports some of the public methods as shown in the FileLoadException class except FusionLog and FileName, which you saw above.

    19. The MemoryStream class creates streams that have memory as an array instead of a disk or any storage media.  It can reduce the need for temporary buffers and files in an application.

    Usage:

    Try

     ‘ Create a new instance of MemoryStream object
     Dim objMemoryStream as New MemoryStream(200)
     
     ‘ Create an instance of UnicodeEncoding
     Dim objUnicodeEncoding As New UnicodeEncoding()

        ‘ Create array of string variables.
       Dim strMyText As Byte() = _
      
     objUnicodeEncoding.GetBytes("File Management using Whidbey/VB.NET")
          
     objMemoryStream.Write(strMyText, 0 , strMyText.Length)

     MessageBox.Show(“ _
          "Capacity = {0}, “ _
      “Length = {1}, “ _
      “Position = {2}", _
               objMemoryStream.Capacity.ToString(), _
               objMemoryStream.Length.ToString(), _
               objMemoryStream.Position.ToString())


    Catch
     MessageBox.Show(“Error in File Operation”)
    End Try

    20. Other class members for this namespaces are:

    Path
    PathTooLongException
    RenamedEventArgs
    Stream
    StreamReader class
    StreamWriter
    StringReader
    StringWriter
    TextReader
    TextReader

    More .NET Articles
    More By Benoyraj Baskaran


     

    .NET ARTICLES

    - More on Commands, Input and the WPF
    - Grouping and Aggregating When Querying LINQ ...
    - Commands, Input and the WPF
    - Keyboard and Ink Input with WPF
    - Mouse Input and the WPF
    - Input with Windows Presentation Foundation
    - Introducing LINQ with XML and Databases
    - An Introduction to LINQ
    - Querying LINQ to SQL: Basics
    - Completing a Simple Storefront with LINQ
    - Knowing Your Environment: the System.Environ...
    - Creating the Home Page for a Simple Storefro...
    - LINQ Quickly with Language Integrated Queries
    - Introducing LINQ to SQL Designer using Visua...
    - Beginning LINQ to SQL Using Visual Studio 20...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway