Cjandura58
New Member
Hi all,
I have written this code but I keep getting a message that the output file can not be found. I assumed incorrectly that progress would create the file for me. That is my problem, if the file does not exist what is the syntax to create the file?
Thanks in advance for your help.
Carrie
Def Stream strmHELPL.
Def Var file-out As char No-undo.
Def Var v-crlf As char Format "x(2)" No-undo.
v-crlf = Chr(13) + Chr(10).
If Search("C:\unidev50\HELdata" + String(Today) + ".txt") = ? Then
File-info:file-name = "HELdata" + String(TODAY) + ".txt".
file-out = File-info:file-name.
Def Var f-strTmp As char No-undo.
f-strTmp = "".
f-strTmp =
Blah Blah Blah---- data to write out
Output Stream strmHELPL To Value(file-out).
Put Stream strmHELPL UnFormatted f-strTmp v-crlf.
Output Stream strmHELPL Close.
I have written this code but I keep getting a message that the output file can not be found. I assumed incorrectly that progress would create the file for me. That is my problem, if the file does not exist what is the syntax to create the file?
Thanks in advance for your help.
Carrie
Def Stream strmHELPL.
Def Var file-out As char No-undo.
Def Var v-crlf As char Format "x(2)" No-undo.
v-crlf = Chr(13) + Chr(10).
If Search("C:\unidev50\HELdata" + String(Today) + ".txt") = ? Then
File-info:file-name = "HELdata" + String(TODAY) + ".txt".
file-out = File-info:file-name.
Def Var f-strTmp As char No-undo.
f-strTmp = "".
f-strTmp =
Blah Blah Blah---- data to write out
Output Stream strmHELPL To Value(file-out).
Put Stream strmHELPL UnFormatted f-strTmp v-crlf.
Output Stream strmHELPL Close.