Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
| Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 21st, 2006, 05:18 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Files in folder - Report

This is a trick one.

I have got a number of files (.txt) in 3 different directories, all created at different times within the week

D:\ABC
D:\EDF
D:\GHI

I need to generate a report (text file) for the week that will list the file entries as follows:
(This is an example. Date – stands for creation date)

Directory Mon Tues Weds Thurs Fri Sat Sun
        Date date date date date date date

ABC 2 1 4 0 1 0 1
EDF 9 8 1 7 1 1 1
GHI 4 3 2 3 2 2 2

Weekly total 15 12 7 10 4 3 4

Total Number of files: 55

Please help!


 
Old November 27th, 2006, 09:01 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello
Generate one datatset(with dataset.clone()with 3 tables into it) from 3 different text files.

Now you loop through no of rows of dataset and just add the corresponding columns values for summing up. Then you print it into another text file ie. your report


Hope this may help you



 
Old November 27th, 2006, 09:03 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you can follow the link

http://www.codeproject.com/cs/databa...rmDelimTxt.asp






Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving files from one folder to another sachtaridis C# 1 November 23rd, 2007 04:33 AM
Files need to move different folder surendran PHP How-To 2 June 20th, 2006 10:27 PM
return files in folder Dj Kat Classic ASP Basics 2 February 9th, 2006 04:23 AM
save files into a folder jessiang General .NET 3 January 16th, 2006 09:48 AM
FILES in FOLDER luma SQL Server DTS 0 June 9th, 2005 01:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.