Re: Writing Byte Array to Disk

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message news:MPG.216b83d7599691394de@xxxxxxxxxxxxxxxxxxxxxxx
Garth Wells <nobody@xxxxxxxxxxx> wrote:
I've got code that allows me to render the contents of a
byte array to the screen, but I need to write the contents
to disk. Suggestions?

Use a FileStream, and call Write on it.


OOC, what would the difference between that and File.WriteAllBytes() be?

--
Doug Semler, MCPD
a.a. #705, BAAWA. EAC Guardian of the Horn of the IPU (pbuhh).
The answer is 42; DNRC o-
Gur Hfrarg unf orpbzr fb shyy bs penc gurfr qnlf, abbar rira
erpbtavmrf fvzcyr guvatf yvxr ebg13 nalzber. Fnq, vfa'g vg?

.



Relevant Pages

  • Re: Writing Byte Array to Disk
    ... byte array to the screen, but I need to write the contents ... to disk. ... OOC, what would the difference between that and File.WriteAllBytesbe? ... Doug Semler, MCPD ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Writing Byte Array to Disk
    ... Garth Wells wrote: ... byte array to the screen, but I need to write the contents ... to disk. ... Use a FileStream, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Need feedback on the A5200 storage array....
    ... they don't have the money for a big Hitachi array or a fast FC array with ... Use RAID5 on that kind of hardware. ... ten years or so) that had internal RAID5 controllers. ... I can't simply yank a disk and read its ...
    (comp.unix.solaris)
  • Re: HP EVA4000 / IBM DS4300 / EMC CX3-20/40
    ... Both EMC and EVA are great arrays and they will serve you well. ... disk array with the virtual raidsets on top. ... So, the system admin, and the DBAs had to create and manage lots of ...
    (comp.arch.storage)
  • Re: RAID 5 corruption, RAID 1 more stable?
    ... corruption to either the RAID array itself or the file system. ... The disk array to suffer so many errors (for example disk errors ... There is nothing the disk array can do if the host is broken and ...
    (comp.arch.storage)