Showing posts with label C#. Show all posts
Showing posts with label C#. Show all posts

Tuesday, August 2, 2011

Sophisticated code for Read a file and find string in C#

string[] tiffiles = Directory.GetFiles(splittedTifFilePath.ToString(), "*.tif", System.IO.SearchOption.TopDirectoryOnly);

StreamReader streamReader = new StreamReader(files[count]);

string text = streamReader.ReadToEnd();

streamReader.Close();

mrun.Add(text.Substring(text.IndexOf("MRUN:"), 20).Split(':').Last().Replace(" ",""));

Tuesday, October 13, 2009

EXT JS POST

When i was in edinburgh, scotland. I played little-bit with extjs control because one of the job requirement.

Check my old post on extjs forum

http://www.extjs.com/forum/showthread.php?t=29284

Cheerz