Compact Framework: A problem with reading a file?

In full framework I use: string dir = Path. GetDirectory(Assembly. GetExecutingAssembly().

Location); string filename = Path. Combine(dir, "list. Txt"); StreamReader str = new StreamReader(filename); I don't know if in compact-framework this works, I cannot try now, sorry...

Windows CE doesn't have the concept of "current directory". The OS tries to open \list. Txt when passing "list.

Txt". You always have to specify the full path to the file.

For the Compact Framework you can get the executing assembly location by using the code base path as follows: string dir = Path. GetDirectoryName(Assembly. GetExecutingAssembly().GetName().

CodeBase); string filename = Path. Combine(dir, "list. Txt"); StreamReader str = new StreamReader(filename).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions