I have the following procedure I call from a script:
proc DATECHANGE
string Fname = "S:\WardStockPrintTime.txt" ; File name to be opened.
if fopen 0 Fname READAPPEND TEXT ; Open file
finsblock 0 64
;fputs 0 " " ; Write a blank line
fwrite 0 $DATE 12 ; Write a text string to file
fwrite 0 "`t@`t" 3 ; Write a @ sign
fputs 0 $TIME ; Write Time
fclose 0 ; Close file
else
errormsg "Couldn't open file `"%s`"." Fname
endif
endproc
I get the following output:
1/20/2005 du @ 11:04:50AM
1/27/2005 du @ 11:14:20AM
2/3/2005 odu @ 12:50:52PM
2/10/2005 du @ 10:15:24AM
2/17/2005 du @ 10:34:35AM
2/24/2005 du @ 10:51:36AM
I don't know where the du & odu come from. If I run this as a stand-alone program, I don't get those characters. Just if I run it from a script. Any ideas?
Thanks.
proc DATECHANGE
string Fname = "S:\WardStockPrintTime.txt" ; File name to be opened.
if fopen 0 Fname READAPPEND TEXT ; Open file
finsblock 0 64
;fputs 0 " " ; Write a blank line
fwrite 0 $DATE 12 ; Write a text string to file
fwrite 0 "`t@`t" 3 ; Write a @ sign
fputs 0 $TIME ; Write Time
fclose 0 ; Close file
else
errormsg "Couldn't open file `"%s`"." Fname
endif
endproc
I get the following output:
1/20/2005 du @ 11:04:50AM
1/27/2005 du @ 11:14:20AM
2/3/2005 odu @ 12:50:52PM
2/10/2005 du @ 10:15:24AM
2/17/2005 du @ 10:34:35AM
2/24/2005 du @ 10:51:36AM
I don't know where the du & odu come from. If I run this as a stand-alone program, I don't get those characters. Just if I run it from a script. Any ideas?
Thanks.