WEB BLOG
this site the web

Answer of q11 sheet 1

{filestream f=new filestream("path",fileMode.open,fileaccess.read);
streamreader sr=new streamreader(f);
string l=sr.readToEnd();
int chars,words,lines;
char[]linek={'\n'};
char[]wordk={ ' ' , ' , ' , ' . ' , ' ; ' , ' \n '};
string[]word=l.split(wordk );
string[]line=l.split(linek);

chars=l.Length;
words=word.Length;
lines=line.Length;
console.writeline("char:"+chars);
("words:"+words);
("lines:")+lines);

f.close();
sr.close();
}



GOODLUCK

2 comments:

Anonymous said...

هو الدكتور حسين قال هيجيب انهي مسالة الجورزنم

Anonymous said...

chapter 1,2 (book propabilty) and chapter 1 (statsic in section)

Post a Comment

 

W3C Validations

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Morbi dapibus dolor sit amet metus suscipit iaculis. Quisque at nulla eu elit adipiscing tempor.

Usage Policies