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. Filestream and BinaryWriter

Filestream and BinaryWriter

Scheduled Pinned Locked Moved C#
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.
  • J Offline
    J Offline
    jayarajmrj
    wrote on last edited by
    #1

    I have a file called sample.doc in c:. I want to save the D: by using Filestream and BinaryWriter. pls give the code ASAP

    S S 2 Replies Last reply
    0
    • J jayarajmrj

      I have a file called sample.doc in c:. I want to save the D: by using Filestream and BinaryWriter. pls give the code ASAP

      S Offline
      S Offline
      Software_Specialist
      wrote on last edited by
      #2

      http://msdn2.microsoft.com/en-us/library/system.io.filestream(VS.71).aspx[^] You ll get the code here..

      1 Reply Last reply
      0
      • J jayarajmrj

        I have a file called sample.doc in c:. I want to save the D: by using Filestream and BinaryWriter. pls give the code ASAP

        S Offline
        S Offline
        Sam_c
        wrote on last edited by
        #3

        the above post probably covers the api you need for filestream and binarywrite. so my post is just to point out it would be easier to use FileInfo and FileInfo.CopyTo if your just copying the file and dont want to edit it. FileInfo tes = new FileInfo(StrFilePath); if (!tes.Exists) return; tes.CopyTo(StrDestPath); or some such off the top of myhead

        Code Project Lounge 101 by John Cardinal

        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