Hello,
I'm needing to create a application that will read a file, that will be like this:
Font = "Courier New"
Size = "10"
Style = "Bold"
As you can see I'm going to use this to set some properties of a TextBox, but I'm going to store each thing that is inside these quotes and store they on some variables(textFont
, textSize
, textStyle
).
I think that I can use this syntax to open a stream with the file:
StreamReader reader = new StreamReader("confs.txt");
The questions are:
- As the StreamReader is declared it will read the file in the application directory?(Just to Confirm)
- How can I read only what is inside the quotes and store each one in a string?
As I think, file I/O is iqual in Windows Mobile and Windows. Best Regards