Opening a .csv file with vbscript that is constantly being updated -


i have .csv file 1 line being overwritten updated data data bus. looks this:

doors closed, open, closed, closed, 

and it's being updated (lets every second) valve changes show in csv file, so:

doors closed, closed, closed, closed, 

if have vbscript reading line of information receive errors trying access said file? here's pretty code have part:

    'create file system object set fso = createobject("scripting.filesystemobject")  'initialize few items strsource = "c:\test.csv"  'open source file read set inputfile = fso.opentextfile(strsource,forreading)  'skip first line since heading strline = inputfile.readline  'read file line line while not inputfile.atendofstream     strline = inputfile.readline      'split line on comma array     strvalues = split(strline, ",") 

the code works .csv files aren't in use wondering if throw errors (even though i'm reading it) if file accessing being updated.

thanks


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -