Question : Now.Ticks

does Now.Ticks work in vb.net 2008 express as I write it to a file and get 0 if not how can I use the same functionality in vb 2008 express

Answer : Now.Ticks

>>  after restarting gets an error  System.ArgumentNullException' occurred in mscorlib.dll

This is because your file is blank and ReadLine() returns nothing, so null is being passed to Long.Parse(). You should consider checking the return of ReadLine() for null before passing to Long.Parse--even if you get the logic working correctly.

>>  it all works except when it tries to write to the file nothing gets written

What kind of app is this? A windows service?

>>  what os are you using

XP
Random Solutions  
 
programming4us programming4us