Help with windows ( I/O I think )
what I''m actually after is an answer to this question
"is it possible to read text from a file which u are also writing to???"
if u dont understand the question then I''ll describe a little more:
you see I have this little program which is like windows notepad ( It''s basically the same ) EXCEPT I started it as a project to learn from, at the moment I have a basic window with an area to type in text ( like notepad ) BUT I want to read whatever text is currently being written in the application and also "compare" the text with other strings ( possibly stored in an array )
I would like to do this for is to have something that checks the current input, compares it with a bunch of strings stored in an array and then IF it''s the same as one of the strings stored in the array the font colour will change , providing an effect something like that in the DevC++ editor "syntax highlighting"I believe it is called, I had a few ideas but I dont know how to continuously check text being typed by the user
thats all I think I dont want to make this question too long but if anyone can help then it woul dbe much appreciated
Cheers
Stealth
You can read and write at the same time (sort of) provided you havn''t locked the files to write only or read only. But for what you want, I would have thought your text is stored in memory, just check through it each time an alteration is made. As for changing text colour in a textbox or whatever your using can''t help I''m afraid.
,Jay
,Jay
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement