468,741 Members | 1,793 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,741 developers. It's quick & easy.

How to give file new name ?

1
Hello, im trying to create new file and rename but without success can some one tell me how to do it

public void savebytetobinary(int address, byte data, string filename)
{
FileStream fsi1 = File.OpenWrite(filename);
BinaryWriter bw1 = new BinaryWriter(fsi1);
fsi1.Position = address;
bw1.Write((byte)data);
fsi1.Flush();
bw1.Close();
fsi1.Close();
fsi1.Dispose();
}
1 Week Ago #1
1 1462
dev7060
450 Expert 256MB
Hello, im trying to create new file and rename but without success can some one tell me how to do it
What's the error? ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎
1 Week Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Fu Bo Xia | last post: by
1 post views Thread by Luke Airig | last post: by
3 posts views Thread by Reginald Blue | last post: by
1 post views Thread by MarkWH | last post: by
1 post views Thread by nicknack | last post: by
185 posts views Thread by jacob navia | last post: by
9 posts views Thread by ashokd001 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.