08-07-2009, 01:21 AM
Thats what I have been doing. For example
I was just curious about the .ToString part that you can select. Like txtTest.text.ToString. Im situated with that. I guess this will be my C# questions post lol. I know how to create files using the FileStreamer and StreamWriter and all that good stuff, also know how to create binary files now. however, in VB6 I could use App.path & "path". In C#, how do I set a file path just like in VB. More specifically, how to set the file path for stuff thats in the same location as the exe. Besides having to do like @"\C:\blah\blah...." Say I have a folder named Files, inside the same folder as my exe. how do I setup a filepath to that sub folder so I can write files inside of it?
Code:
int Num1 = 10;
int Num2 = 10;
int Total = 0;
Total = Num1 + Num2;
txtTest.Text = Convert.ToString(Total);
I was just curious about the .ToString part that you can select. Like txtTest.text.ToString. Im situated with that. I guess this will be my C# questions post lol. I know how to create files using the FileStreamer and StreamWriter and all that good stuff, also know how to create binary files now. however, in VB6 I could use App.path & "path". In C#, how do I set a file path just like in VB. More specifically, how to set the file path for stuff thats in the same location as the exe. Besides having to do like @"\C:\blah\blah...." Say I have a folder named Files, inside the same folder as my exe. how do I setup a filepath to that sub folder so I can write files inside of it?