2010/03/17

C# week8_1

15/03/2010

 
 

Hashing search: key & value

*When sorted, Binary search

*When not sorted, Liner search

 
 

Binary Tree search: Tree structure

*It has to be sorted

 
 

File

When you use file, if same statement write one by one, it is not efficient.

Because it has to connect other location file many times. So we use Buffer.

 
 

FileStream fs = new Filestream();

(

"xyz.txt",

FileMode.Create,

FileAccess.Write,

FileShare.Read

);

 
 

'\' is escape sequence, so we have to use '\\' or '@'.

'@' is easier than '\\', because if you use '@', it allows you to use '\'whole sentence.

 
 

sw.Flush(); Buffer - Update

 
 


 

 
 

0 件のコメント:

コメントを投稿

UA-9417263-1