Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / programming / file

File

file

Great Reads

by Ian Shlasko
Unless I'm misreading your code on CodePlex, it looks like your utility loads in the entire file every time it changes. That might be fine for tiny files, but it would be a huge performance hit for larger ones (a few megs, for example).Why not do it a bit more simply?using (FileStream str...
by Lodewijk Pool
A quick and easy way to direct Java System.out to File and to Console.
by Member 3896609
try{ FileOutputStream fout= new FileOutputStream("stdout.log"); FileOutputStream ferr= new FileOutputStream("stderr.log"); TeeOutputStream multiOut= new TeeOutputStream(System.out, fout); TeeOutputStream multiErr= new TeeOutputStream(System.err, ferr); ...

Latest Articles

by Ian Shlasko
Unless I'm misreading your code on CodePlex, it looks like your utility loads in the entire file every time it changes. That might be fine for tiny files, but it would be a huge performance hit for larger ones (a few megs, for example).Why not do it a bit more simply?using (FileStream str...
by Lodewijk Pool
A quick and easy way to direct Java System.out to File and to Console.
by Member 3896609
try{ FileOutputStream fout= new FileOutputStream("stdout.log"); FileOutputStream ferr= new FileOutputStream("stderr.log"); TeeOutputStream multiOut= new TeeOutputStream(System.out, fout); TeeOutputStream multiErr= new TeeOutputStream(System.err, ferr); ...

All Articles

Sort by Score

file 

by Uwe Keim
Introducing a small class that helps you in creating automatic copies of files and clean them up automatically, too
by ASP.NET Community
Howto: Add JavaScript inside Head element from code behind  Here is the sample how you can do that.1)  Add some JavaScript inside page header
by Wolfram Steinke
An entry level tutorial on using one of the Windows Common Controls in a dialog.
by ASP.NET Community
Many of us want to use CSS 3.0. This feature is promised in Visual Studio 2010 however if you open any given CSS file, the option does not appear in
by ASP.NET Community
App_Offline.htm ASP.NET 2.0 introduced the ability to take an application offline simply by adding a file named App_Offline.htm to the
by ASP.NET Community
When a page request is sent to the Web server, the page is run through a series of events during its creation and disposal. In this article, I will
by Antonio Lopez R
Create an Excel file from data table without Excel using Report Viewer control.
by Debopam Pal
Export Advance Excel 2007 Report
by ASP.NET Community
Creating and Deleting Files on Fly on WebServer through Javascript (Magic of HTML and Jquery)We usually know the methods of POST and GET for posting
by ASP.NET Community
Every element in the configuration file maps to a class in the .NET framework.  It's possible to expand upon this to create custom configuration
by Mr.PoorEnglish
Avoid foot-traps while using StreamReader / StreamWriter
by Michael Sydney Balloni
See how Rust stacks up against C-ish, C++, and C#
by ASP.NET Community
Encrypt & Decrypt ConnectionString SectionSometimes we need to secure ConnectionString to prevent anyone can knows it. whatever your purpose from
by ASP.NET Community
Web.Config            <add name="ConnString" connectionString="Data Source=.\SQLEXPRESS;
by ASP.NET Community
First let’s see what the CSV file is:CSV file is a text based file in which data are separated by comma. It can be opened by excel so you can use
by ASP.NET Community
Sometimes we needs to export data to file with applicable styles...Here am trying to show an simple example... .aspx page<asp:DropDownList
by ASP.NET Community
Our application was one that presented real time data and charts to the user based on some criteria selected by the user. The chart and model were
by Alexander Schwoch
This is an alternative for "Fault Tolerance for Large Files on Cranky Hardware"
by Kunal Chowdhury «IN»
In this article I will guide you creating a File Explorer in Silverlight 4. This step-by-step guide will help yoou understanding the API call and how to access local files, folders and drives using the Silverlight 4 COM APIs.
by Dirk Bahle
Lessons Learned on Software Design with WPF
by ASP.NET Community
Here is a list of file extensions which are configured by default to be handled by ASP.NET 2.0.asax used for application level logic
by ASP.NET Community
Asp.Net 2.0 introduced a new control called FileUpload that is used to upload files from the client browser to the server. Video  Simple File
by V.
Convert FITS file to known image formats and use those images for a "zooming" functionality (image transparency)
by ASP.NET Community
FtpWebRequest class to upload a file to ftp server (destination )This Function shows how to upload a file ftp server. this function simply return
by ASP.NET Community
The Global.asax file, also known as the ASP.NET application file, is an optional file that contains code for responding to application-level and
by SercanOzdemir
Don't forget to use Reminder v1.0 to remind everything.
by Michael Simonov
The article discusses dynamic xHtml to xHtml XSL transformations for PDF output purposes.
by ASP.NET Community
How to edit Configuration file Web.Configin web.config we use section to add keys as you see      <add key="email"
by ASP.NET Community
If you use the asp.net membership providers, having visual studio keep this sql database file around for deployment can sometimes be convenient.
by sajidur rahman
This article describes about CSV/Excel File import in SQL Server with common problems.
by ASP.NET Community
While developing any web site, one should keep some points in mind.1) Set debug=false under compilation as follows:<compilation default
by Krishna P Seetharaman
Issues faced and learnings found during the generation of pipe delimited flat file generation
by ASP.NET Community
In this article i am going to use simple class which use to write error and exceptions occured in your asp.net application in a text file
by ASP.NET Community
Hi,  Many of us come across situation like, just need a unique session id through out the session irrespective of whether the data is stored in
by PIEBALDconsult
A C function that merges the content from an arbitrary number of text files into a Character-Separated-Variable-Width result file
by ASP.NET Community
Passing values from a popup window back to the parent page is an often asked question. Especially when there is a GridView type control in the popup.
by Mark Pelf
Beginner’s tutorial on PE format, with illustrations
by Mark Pelf
Beginner’s tutorial on PE format applied to .NET assemblies
by Denys Podymskyy, Apriorit Inc
In this article, we will examine a problem of receiving the correct value of the dmCopies variable in the DEVMODE structure while printing from Microsoft Word 2003.
by Uzi Granot
This project will give you the tools needed to compress and decompress files using the Deflate method of compression, and to read and write standard Zip files.
by ASP.NET Community
I'm going to expalin how extract data from csv file using c#.First you have to declare two string variables and their properies for store directory
by Jonathan Wood
Here's some lightweight C# code for reading and writing CSV files.
by Andreas "PAX" Lück
Investigation of PE file modifications performed by Microsoft Detours
by ASP.NET Community
The SiteMapPath (also known as breadcrumb) control is a navigation control that allows the user to know the current page location with respect to the
by ideafixxxer
Algorithm of sorting lines in text files size of which exceeds available memory
by ASP.NET Community
The main difference is that the RegisterStartupScript method places the JavaScript at the bottom of the ASP.NET page right before the closing
by ASP.NET Community
ThemesAuthor: Prakash Singh MehraIntroduction: Themes are the way to define the formatting details for various controls and can be reused in
by ASP.NET Community
if(IsPostBack){Boolean fileOK=false;String fileExtention=System.IO.Path.GetExtension(FileUpload1.FileName).ToLower();   //check file
by Tomaz Koritnik
TmStorage is a structureless virtual file system from which complex storages or databases can be built.
by ASP.NET Community
Some times we need to allow user to upload as many files as he/she wants instead of fixed number of files.So here is the procedure to achieve this.
by ASP.NET Community
This example will show how is possible to upload files to SQL server database using C# and asp.net. For demostration purposes database will have only
by ASP.NET Community
The FileSystemWatcher is responsible for to track the updates of either file or folder/sub-folders, Suppose if I would like to continuously monitor a
by ASP.NET Community
I’ve been heads down for the last several weeks Scrumming and it has been a while since I’ve updated my blog so I figured if I was going to keep your
by rspercy65
This is a remake of Pramod Kumar Sing's 2002 API Viewer.
by Edwig Huisman
Anything :-) you can do with a MS-Windows File
by Leung Yat Chun
FileExplorer is a WPF based control that has most features of the Windows Explorer, you can use it to display shell objects or any hierarchical data.