Click here to Skip to main content
12,622,517 members (31,556 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#
HI ALL


in my code i get files from a directory in c# . loots of files there in the specific directory .then i do some processing on that files step by step now i want to write these output file in seperate directory .
i use createDirectory method for out put files wite in this directory
but how to write these output files in ouput directory .

else by default files written in the input folder

plz help how to write files in the output directory step by step all files


Regards
Posted 26-Sep-12 19:45pm
prog786465
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

I suggest use File.Copy.

or if you want to cut from specific folder & past to output folder use File.Move
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.161128.1 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100