none
Needs comments on FileInfo CopyTo method RRS feed

  • Question

  • Hi All,

    I am using .NET FileInfo Class ,and doing a file copy from one location to other location using CopyTo method.

    My Question :Does it handle UNICODE File copy too.

    Suppose MyFile contain any Unicode character in it,

    Thanks

    Das

    Dwipayan Das
    • Edited by Dwipayan Das Tuesday, June 2, 2009 11:22 AM More clarification
    Tuesday, June 2, 2009 11:20 AM

Answers

  • It doesnt matter the content of the file.

    The orginal file will be copied to the specified destination without any content change.


    Thanks,
    A.m.a.L
    .Net Goodies
    Remember to click "mark as answered" when you get a correct reply to your question
    • Marked as answer by Dwipayan Das Wednesday, June 3, 2009 7:23 AM
    Tuesday, June 2, 2009 11:46 AM
  • To add to what AMAL said...

    Since one is not processing streams and then rewriting those streams, the chance for dropping a unicode character is not there. By using the file IO routines they will handle any special characters. Check out How to: Copy, Delete, and Move Files and Folders for more info.

    William Wegerson (www.OmegaCoder.Com)
    • Marked as answer by Dwipayan Das Wednesday, June 3, 2009 9:52 AM
    Tuesday, June 2, 2009 2:00 PM
    Moderator

All replies

  • It doesnt matter the content of the file.

    The orginal file will be copied to the specified destination without any content change.


    Thanks,
    A.m.a.L
    .Net Goodies
    Remember to click "mark as answered" when you get a correct reply to your question
    • Marked as answer by Dwipayan Das Wednesday, June 3, 2009 7:23 AM
    Tuesday, June 2, 2009 11:46 AM
  • To add to what AMAL said...

    Since one is not processing streams and then rewriting those streams, the chance for dropping a unicode character is not there. By using the file IO routines they will handle any special characters. Check out How to: Copy, Delete, and Move Files and Folders for more info.

    William Wegerson (www.OmegaCoder.Com)
    • Marked as answer by Dwipayan Das Wednesday, June 3, 2009 9:52 AM
    Tuesday, June 2, 2009 2:00 PM
    Moderator