.net - Is FileStream the safest way to copy a file vs. File.Copy? -


i copy file source destination directory. heard best filestream in case gets modified later / accessed later.

i using c# 2.0 , .net 2.x.

i don't need determine if file open or not or read/write or not. need copy is, have determined file has stopped growing (check every 4 seconds) 'good enough' in situation.

so should use memorystream or filestream or file.copy(..) , how?

use: file.copy(..)

how: see documentation. also, recommend checking out path class.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -