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 件のコメント:
コメントを投稿