Link to home
Start Free TrialLog in
Avatar of Fan
Fan

asked on

How could the VB process the text file created by matlab automatically?

i do the calculations by matlab and the results could be saved into text file
how could the vb detect the current changes of text file and load the file automically?
Avatar of tampabay420
tampabay420

maybe you could use the last modified value, Windows will store the date the last time a file was modified... or you could try matching the File Size, if the file is larger than it was before then new content has been added... etc...

hope this helps
Avatar of aelatik
You could set up a timer and scan every (60 or whatever) seconds if the 'modification date' has changed or the file size. And if changed process the file..

It works for me ...

Wow look at the post time ;-)
ASKER CERTIFIED SOLUTION
Avatar of aelatik
aelatik
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Fan:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
Moderator, my recommended disposition is:

    Accept aelatik's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer