I'm new bie to C# application..here is my requirement goes, (a) I want to search a particular keyword inside a file. (b) let say, if a file contains text "this is sample program...". If i search "sample" inside a file, it should give the exact matching. (c) any prior articles for the same..? -------code FileStream fs = new FileStream("C:\\a.txt", FileMode.Open, FileAccess.Read); StreamReader fs1 = new StreamReader(fs); String mystring="sample"; while (string == fs1. _:doh:___ ) { Messagbox.show("Yes i got ur string .."); } --------- please reply this incomplete prog..snippet.
cyberiafreak
Posts
-
Complete this program-- New bie to FileStream ? -
how can i develop a parser which is like .......?hello everybody, i like to develop a parser which should parse the user given inputs.. exampl, ---------------------------- # code ln 123,232,23,223; mycircle 233,343,12; Textout "text",23,23,"2"; # end when i run the program, the user pinputted codes should be mapped with the vc+++ Line,Circle,Textout routines with app.parameters provided by the user. suggest me an idea to solve this.. with regards, Mahes
-
how can i define a new language in VC++ ??hello everybody, my project module is to develop a graphical language in vc++. we have to declare a few keywords,graphical routines,looping statements etc. Using the syntax that we declared earlier, telling the user to follow that syntax to code it. My problem is, how can i define these langauage primitives and compile it to produce the output. FOr example, the user code in editor, # start text "Mahe" 123 232 Bold cirlce 232 232 21 line 232 232 232 121 # stop our compiler(VC++) has to read all this code and produce a graphical output.please guide me for , how to analyze this project. first i have to spec it out the language keywords etc and all...please suggest me to workout this project Mahesh Kumar,b'lore
-
developing a small scripting langauge in VC++ ??hello pals, i'm new guy to this forum. im doing project in VC++ and also new to VC++. interestingly i have to develop a small scripting language using vC++ for performing graphical functions. that is creating a small graphical package using VC++. consider the user doen't know anything about the syntax for performing graphics using VC++. we are defining a new set of our control with syntax and one looping statements to perform grp.o/p 1. suppose user writes a code for displaying a multicircle on the screen.but he doesn'nt know anything about the VC++ circle ...etc. but using our script he can perform his job. ex: # start drawcirle 123,233 . . . # end but our VC++ program should acts as an interpreter to convert our defined scrts to appr..vc++ graphical routines.that is developing a compiler using a VC++ compiler. pleassse help me to work out my module given by my guide.Atleast suggest me where i have to start and in which part of VC++ i have to concentrate. First he told me spec it out the project, but i do know what to spec it out. my module include, #1. defining a few datatypes,graphical scripts and anyone looping stmt. 2. using (module #1) the programmer writes his code. 3. We have to execute the code by interpreting to VC++ grahical function. i posted in many forums, but one of my friend gave this site.. with regards, Mahesh:zzz: