Writing an integer to a file

2011-03-07 Thread yochi
Hello, I am trying to write an integer to a file, but when I open the file it writes the char the number represents in ascii. does anyone have a suggestion?

Re: Writing an integer to a file

2011-03-07 Thread Regan Heath
On Mon, 07 Mar 2011 11:26:25 -, yochi yoc...@gmail.com wrote: Hello, I am trying to write an integer to a file, but when I open the file it writes the char the number represents in ascii. does anyone have a suggestion? Post your code, people can then suggest changes. Also, some things to

Re: Writing an integer to a file

2011-03-07 Thread %u
this is part of the code: void WritePushPop(cmd command, string segment, int index) { string temp = TextFile.Asm; AsmFile = new File(temp, FileMode.OutNew ); string x = toString(index);

Re: Writing an integer to a file

2011-03-07 Thread Stewart Gordon
On 07/03/2011 12:11, %u wrote: this is part of the code: Posting the whole code (or even better, a minimal, complete program that shows the problem) helps a lot. void WritePushPop(cmd command, string segment, int index) { string temp = TextFile.Asm;