is there a method, using C# that i can open a file, then copy the data from it into another file in a different folder?

the file doesnt need to be opened, just the data inside moved to another file.

any help would be great, and thanks to all the posts for my last thread!

Recommended Answers

All 4 Replies

There is a file copy method in the File class :
File.Copy( OriginalPath, CopyPath );

is that copying the whole file, or copying the data from inside it. as ill be going through a folder with many files, adding all the data into one big file (for example an excel file) in another folder.

cheers, thats the ticket with the stream reader and writers.

thanks again

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.