Detect file modification

BlitzMax Forums/BlitzMax Programming/Detect file modification

Bremer(Posted 2012) [#1]
I was searching for some information on how to detect if a certain file had been modified and I found some code in the code archieves:

http://blitzmax.com/codearcs/codearcs.php?code=2747

The code seems to work, and I can detect the event just fine, but I cannot seem to figure out, how I get the filename from the eventsource which returns an object, not a string.

It might be a simple thing, but for unknown reason I just cannot seem to spot it right now, so if someone has a suggestion the I would appreciate it.


Zeke(Posted 2012) [#2]
[bbcode]name:String=String(event.source)
'or
name:String=event.source.ToString()
[/bbcode]


Bremer(Posted 2012) [#3]
Thanks, it got me in the right direction and past my brain freeze.