wc3edit.net
https://forum.wc3edit.net/

Visual Basic - WriteAllText
http://forum.wc3edit.net/tech-support-f37/visual-basic-writealltext-t25697.html
Page 1 of 1

Author:  owner123 [ August 10th, 2012, 5:20 pm ]
Post subject:  Visual Basic - WriteAllText

So this is a question about the WriteAllText command in visual basic.

It is supposed to write a string to a certain file. It works almost correctly, but whenever I use the command, it append this hex string to the beginning of it.
Quote:
EF BB BF

As it shows up in text editors,
Quote:
í»¿


Why is this showing up? I know I'm not writing this text in the command.

Author:  haxorico [ August 12th, 2012, 9:28 am ]
Post subject:  Re: Visual Basic - WriteAllText

I had that problem some time ago (also it appears at almost any cheated war3map.j file...)
I think that using StreamWriter will solve your problem.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/