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 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); ...
by ASP.NET Community
How to add images in Image Rotator with the help of FileUpload control
by Laurie Stearn
Dialogex with Listbox to manipulate long paths in Windows
by Olivier Levrey
Simple helper classes to read/write files using BufferedStream plus a few handy methods (read/write structs or simple arrays)
by Ragheed Al-Tayeb
Hi Olivier,First, thank you for your helpful post here and I'd like introduce some suggestion that might help to increase the performance of the Read & Write methods (of arrays such as ReadIntArray, ReadFloatArray and WriteIntArray, .... etc.). My suggestion is to make use of the...
by Emiliano Musso
A quick method to convert a CSV file in XML
by ASP.NET Community
Here is a simplified class to create Excel file from DataTable just Pass DataTable and Preferred location on server to generate. Call the
by Pascal Ganaye
Deleting protected folders in Windows 7
by Brad Joss
Search for files and folders and don't exit the search when there is an error accessing a protected folder, just skip it.
by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
There will be one Link button in the GridView row. On clicking the Link button, the Image displayed in that row gets downloaded.
by Mikhail-T
How to convert string to text file and return it back to user as a result of a controller action
by kj-dev
Launching external application or file from Silverlight 4 (out-of-browser) using Automation Factory
by ThatsAlok
IPC using memory mapped file in managed VC++
by Ahmed Kahwaji
by Ravi LVS
If you want to keep a downloadable file private to end users / customers with their username and password, everyone suggests not to put the file in the web root directory, and gives you a suggestion to change IIS settings and use Response.TransmitFile. When you are not having access to the...
by Manish Choudhary .NET expert
How to merge all text files in a folder
by Lance Roberts
A tray utility for monitoring log files and popping up error messages
by rohitsies
CSV file generator using simplistic approach
by Bhis
Read XML File and change date contents
by Bhis
Various ways to sort list and compare results
by Gareth Jensen
Tips on how to declare a class template in a header file and define a class template in a source file.
by a.alghabban
How to use WCF to stream large file size over TCP
by The Manoj Kumar
Did you ever face a situation where you want to read a delimited file (CSV or any similar format) and want to filter the records on the basis of some conditions (by checking some values against columns).For example, let's assume that Data.txt file contains the following...
by Kornfeld Eliyahu Peter
Play hide-and-seek with your shared files...
by Ed Nutting
What are the Used File Extensions
by Partha_sarathi_ghosh
Zip or Archive and delete old log files using Windows Task Scheduler in Winrar