Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Articles & Samples > C-Sharp > File Management
Search:
What's New - What's Hot
Listings for File Downloading File Downloading (7)
Listings for File Uploading File Uploading (12)
Listings for Hard Drive Directories Hard Drive Directories (26)
 


Writing a .net debugger (part 3) – symbol and source files  Version: 0.00     Price: $0.00  
Total Hits: 6  |  Today: 0Author: lowleveldesign      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this part I will show you how to load module debugging symbols (PDB files) into the debugger and how to bind them with source files. This can’t be achieved without diving into process, thread and module internals so we will examine these structures also....

File Handling using C#  Version: 0.00     Price: $0.00  
Total Hits: 32  |  Today: 0Author: PIYALI SENGUPTA      Rating:  
Read Reviews | Write Review |  Your Rating: 

The .Net framework provides a few basic classes for creating, reading and writing to files on the secondary storage and for retrieving file system information. They are located in the System.IO namespace and used both in desktop applications and the web applications....

Best fit of text length while printing PDF templates  Version: 0.00     Price: $0.00  
Total Hits: 18  |  Today: 0Author: Narsimlu Keshagouni      Rating:  
Read Reviews | Write Review |  Your Rating: 

In one of my projects we are using PDF templates for the generating the PDF files. Like we create a template first with the textboxes on it and later we can use the template with filling the dynamic data and saving the resulting file. The issue was with the dynamic data not fitting in to the textboxes when the data from database is in Capital Letters. As we were not using the mono spaced fonts like courier. Mono spaced font takes equal number of points while printing on screen or paper say 8X12 ...

Zip and UnZip files in C# using J# libraries  Version: 0.00     Price: $0.00  
Total Hits: 22  |  Today: 0Author: Mohammed Habeeb      Rating:  
Read Reviews | Write Review |  Your Rating: 

Recently I had to build a private online photo album application. I planned to provide the users the option to upload images as a ZIP file. I needed this option to be implemented in ASP.NET 1.1, as my hosting service provider didn't have .NET 2.0 support. Online search lead me to a blog with this wonderful idea of using the ZIP option in J# and it really attracted me. I did want to try it out and the results were pretty cool. Even though this sample application has been written in .NET 1.0, .NET...

Folder, Drive, Directory Browser  Version: 0.00     Price: $0.00  
Total Hits: 34  |  Today: 0Author: vivekthangaswamy      Rating:  
Read Reviews | Write Review |  Your Rating: 

This source code is written and maintained by an individual, not a company. It has been provided for free to the Microsoft .NET user community with the expectation that users will take whatever action necessary to get the code to operate according to their needs. This includes debugging and enhancements. The source code is provided "as is" and there are neither warrantees to the quality of the work nor any expressed or implied agreements that the programmer will release any updates. The programm...

Software's List Installed on Windows Machine  Version: 0.00     Price: $0.00  
Total Hits: 21  |  Today: 0Author: surendrakishor      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many of us don't know what softwares are installed and strive to check them programatically. Here's a simple way to get that list. This is very useful when you want to create an installer for your projects, which helps you in checking the right version of minimal software requirements for your projects on clients' machine....

Automating Multipart Zip File Creation  Version: 0.00     Price: $0.00  
Total Hits: 15  |  Today: 0Author: awln      Rating:  
Read Reviews | Write Review |  Your Rating: 

Most guest accounts on file sharing sites have a 100 – 300 MB limit on the file sizes that can be uploaded. I usually use the WinZip splitting option to compress my files to be uploaded. At times, there can be problems uploading to the file sharing site. If the files you have uploaded were created using the split option, this means that the downloader would require all the parts to be downloaded before he/she can unzip the file. I wanted my shared image files to be available for viewing as soon ...

Working with the System.IO.Directory Class in C#  Version: 0.00     Price: $0.00  
Total Hits: 22  |  Today: 0Author: Chandra Hundigam      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article is focused on understanding the Directory class of System.IO namespace. The Directory class exposes routines for manipulating directories & subdirectories. It contains all kinds of routines like creating, moving, and enumerating through directories and subdirectories. In most of the application developments we require some file accesses or directory accesses normally we use some low-level system API like Directory-Control Routines in C (eg. _mkdir, _chdir, _rmdir) or Platform SDK fu...

CDataFile - An easy class for reading numeric data in CSV or Text-Delimited format.  Version: 0.00     Price: $0.00  
Total Hits: 18  |  Today: 0Author: Nitron      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article presents the CDataFile class. CDataFile is a class that is designed to provide an interface to using and manipulating CSV (comma separated values) or other text-delimited, tabular, data files. CDataFile was first published in November, 2002 and has undergone several improvements and enhancements, and ended up getting totally redesigned. This implementation has removed all dependence on MFC and now makes great use of the Standard Template Library (STL). Throughout the class, you will...

Translating logical offsets into physical offsets  Version: 0.00     Price: $0.00  
Total Hits: 25  |  Today: 0Author: Omri Shaked      Rating:  
Read Reviews | Write Review |  Your Rating: 

I recently needed to translate a logical address returned by FSCLT_GET_FILE_RETRIEVAL_POINTERS to physical offset from the beginning of the disk (in bytes), but there aren't many articles that specify the whole process, so I've decided to write one....

How to Get a List of Files and Folders Without Directory.GetFiles Access Denied Error  Version: 0.00     Price: $0.00  
Total Hits: 16  |  Today: 0Author: merlin981      Rating:  
Read Reviews | Write Review |  Your Rating: 

I know the title is a bit long, but it descriptive of the problem.Recently I had need to retrieve a listing of files and folders given a root path. All worked well, until I tested on Vista and Windows 7 machines. When trying to browse the "Users" folder, I kept getting access denied errors and no lists returned. The problem is that Directory.GetFiles and Directory.GetDirectories will fail on the first sign of an access denied issue. On Vista and Windows 7, most of the directories under the Users...

Craft Your Own Archiver 1 / 3  Version: 0.00     Price: $0.00  
Total Hits: 21  |  Today: 0Author: Leung Yat Chun      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many years ago, when I start learning how to develop software, zippware is one of my first products I developed, I developed my first prototype using a demo of DelZip.

I found that developing such product is a good way to learn how to program window programs. To build the most basic zippware, you have to learn how to do many things using the existing framework, like User Interface, IO handling, Shell, Win32 API. Once you completed the basics, you can apply most new features that you jus...

Craft Your Own Archiver 3 / 3  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Leung Yat Chun      Rating:  
Read Reviews | Write Review |  Your Rating: 

Windows application generate a thread called main thread when started, in the previous cyoa1 and cyoa2 demo, both UI and Archive operations is run in the main thread. As a thread can only run one execution sequence at a time, if the main thread is occupied by the archive operations (which usually takes a long time), it will be unable to handle the UI work, this will make the screen not updating (and a [Not responding] appear in caption bar)...

Simple zip archive unzipper  Version: 0.00     Price: $0.00  
Total Hits: 20  |  Today: 0Author: Anders M. Mikkelsen      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you sometimes find yourself in a situation where you need to unzip some files but really don't like the thought of having to roll out the big artillery (i.e., third-party libraries), then this simple zip archive unzipper might be the thing for you. It consists of just a single source file of about 200 lines of code, and is thus easily incorporated into your application. This way, you don't have to worry about third-party library dependencies and related deployment issues; simply compile the s...

.NET wrapper for Info-ZIP  Version: 0.00     Price: $0.00  
Total Hits: 18  |  Today: 0Author: Serhiy Perevoznyk      Rating:  
Read Reviews | Write Review |  Your Rating: 

Many of today's applications require the capability of extracting certain files from a ZIP archive, either onto the hard disk or into memory. A lot of useful zip libraries for .NET applications abound on the Web (SharpZipLib for .NET Framework is a very known one), but I wanted to use the Info-ZIP library as it was always my favorite library for C++ projects. Info-ZIP is an Open Source version of Phil Katz's "deflate" and "inflate" routines used in his popular file compression program, PKZIP. In...

Copy files to a folder     
Total Hits: 100  |  Today: 0Author: John.Jiang      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this sample,It shows how to copy all files in a folder and copy them to another folder. (Optional) Is there any background to this article that may be useful such as an introduction to the basic ideas presented? A brief description of how to use the article or code. The class names, the methods and properties, any tricks or tips....

Instance Constructor vs. The Class Constructor     
Total Hits: 90  |  Today: 0Author: Govinda      Rating:  
Read Reviews | Write Review |  Your Rating: 

The Common Language Runtime Object Model provides two special methods, the instance constructor and the class constructor. This class constructor method is also known as type constructor or type initializer.

Instance constructor is executed when a new instance of type is created and the class constructor is executed after the type is loaded and before any one of the type members is accessed. We have a perfect setup for field initialization since the class constructors are static and can d...

Listing Files In Directories with C#     
Total Hits: 178  |  Today: 0Author: Salmani      Rating:  
Read Reviews | Write Review |  Your Rating: 

One of the coolest things about the ASP.NET is that it comes with a very rich set of objects to play with. The following is an example of how easy it is to accomplish the tast of listing files in a given directory on your web server. The snippet of code simply accesses a directory and pulls all the files into a collection that we then iterate through. Take a further look into the DirectoryInfo and FileInfo class for some other usefull methods....

Cabinet File (*.CAB) Compression and Extraction     
Total Hits: 236  |  Today: 0Author: Elmue.      Rating:  
Read Reviews | Write Review |  Your Rating: 

.NET does not offer compression functionality. If you search the internet for libraries which are ready to use, you find, for example, ICSharpCode.SharpZipLib.dll which offers ZIP compression. But this library is awkward to use and buggy, and so is unusable. Although the bugs have been known for years, the author has not fixed them....

C# and advanced binary files     
Total Hits: 243  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Opening binary files is allmost the same, you just use BinaryReder / BinaryWriter to read and write to open File , i.e. stream.However the operations you can perform on this stream is limited by the BinaryReader/Writer range of methods. You can read/write all the generic data types( e.g. int, float, byte, etc.) as well as byte arrays. But what about custom structs!? You can use the Serializable options in .NET bu that works with data types created in .NET. What if you have one binary files with ...



Disclaimer - Privacy
© 2002-2017 DevASP.net