avatar
streamwriter and filestream# Programming - 葵花宝典
x*g
1
有些网站说他们可以,但是不知道是不是真的。不想花几十块钱然后被骗
avatar
G*G
2
in C#, you can use StreamWriter to write a file.
and you can use Filestream and StreamWriter to do the same thing.
What is differnce between the two methds?
for example,
A)
using (FileStream fs = new FileStream(fileName,FileMode.Append, FileAccess.
Write))
using (StreamWriter sw = new StreamWriter(fs))
{
sw.WriteLine(something);
}
B)
using (StreamWriter sw = new StreamWriter(fileName, true))
{
sw.WriteLine(something);
}
avatar
S*s
3
收钱的都是假的 耐心等发布吧

【在 x***g 的大作中提到】
: 有些网站说他们可以,但是不知道是不是真的。不想花几十块钱然后被骗
avatar
d*k
4
用FileStream catch的 exception信息更全面吧。
avatar
M*t
5
假的,全是假的,凡是要钱的都是假的。

【在 x***g 的大作中提到】
: 有些网站说他们可以,但是不知道是不是真的。不想花几十块钱然后被骗
avatar
H*S
6
why dont you take a look at its source code ? I think underneath, `
StreamWriter` constructor that takes file name as argument will do a
conversion to `FileStream` and call the other constructor directly ?
avatar
x*g
7
收钱的反而是假的,
avatar
a9
8
FileStream是个raw stream
StreamWriter是外面包了层壳

【在 G***G 的大作中提到】
: in C#, you can use StreamWriter to write a file.
: and you can use Filestream and StreamWriter to do the same thing.
: What is differnce between the two methds?
: for example,
: A)
: using (FileStream fs = new FileStream(fileName,FileMode.Append, FileAccess.
: Write))
: using (StreamWriter sw = new StreamWriter(fs))
: {
: sw.WriteLine(something);

avatar
k*n
9
no, 付钱给 Apple 买个 unlock 的 iPhone 是真的。
avatar
s*s
10
apple's website in Australia has unlocked version for $799 Aus for 16G.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。