Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. XML transfer

XML transfer

Scheduled Pinned Locked Moved C#
xmlhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deanoA
    wrote on last edited by
    #1

    Hi. I am transferring an XML file to another PC's shared folder. I tried to use a File.Copy method but the XML file that has been transferred to the other pc becomes garbage. Is there another way of transferring the file that it won't become garbage? I used the ff code: File.Copy("\\\Data\\" + FileName, true); Where Data is a shared folder. The file got there alright but the content is just garbage. Please help. "To teach is to learn twice"

    J 1 Reply Last reply
    0
    • D deanoA

      Hi. I am transferring an XML file to another PC's shared folder. I tried to use a File.Copy method but the XML file that has been transferred to the other pc becomes garbage. Is there another way of transferring the file that it won't become garbage? I used the ff code: File.Copy("\\\Data\\" + FileName, true); Where Data is a shared folder. The file got there alright but the content is just garbage. Please help. "To teach is to learn twice"

      J Offline
      J Offline
      Julian Bucknall MSFT
      wrote on last edited by
      #2

      I would suspect that something else is going on since that code should work. It's not as if the operating system treats XML files differently than other files when copying them. I'd play around a little to try and discover what's occurring. Cheers, Julian Program Manager, C# This posting is provided "AS IS" with no warranties, and confers no rights.

      A 1 Reply Last reply
      0
      • J Julian Bucknall MSFT

        I would suspect that something else is going on since that code should work. It's not as if the operating system treats XML files differently than other files when copying them. I'd play around a little to try and discover what's occurring. Cheers, Julian Program Manager, C# This posting is provided "AS IS" with no warranties, and confers no rights.

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        HI. Thanks anyway. It now works.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups