Click here to Skip to main content
15,914,221 members

Videos


Page 6 of 120
1 2 3 4 5 6 7 8 9 10


.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
101. I have a problem with Encoding and Decoding.
You're using a BinaryWriter and writing strings using it. Assuming the input file has "123" as its contents, do you want a 3 byte binary file with bytes 0x30, 0x31 and 0x32, or do you want an ASCII file with contents "303132"?If it's the former, then you should be writing bytes, not strings....
S. Senthil Kumar Updated: 11 Feb 2010
Rating: 5.00/5 ( (1 vote))
102. Is MemoryStream is faster than FileStream ?
I guess it depends on the size of the file, and the amount of memory available. You should try profiling both approaches and see which one is faster for you.If the file size is large and you have a small amount of memory to fit it in, getting all bytes into a byte[] and then into the memory...
S. Senthil Kumar Updated: 11 Feb 2010
Rating: 5.00/5 ( (1 vote))
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()

Page 6 of 120
1 2 3 4 5 6 7 8 9 10