Click here to Skip to main content
11,414,619 members (70,793 online)
Rate this: bad
good
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
prog786380
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
0 Sergey Alexandrovich Kryukov 9,130
1 OriginalGriff 7,477
2 Maciej Los 3,710
3 Abhinav S 3,298
4 Peter Leow 3,084


Advertise | Privacy | Mobile
Web02 | 2.8.150427.4 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2015
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