tami0587
asked on
Check for file existing and create if it doesn't
I'm new to lotusscript. We need to add to a template to check for a file existing and append to it if it does exist. If it doesn't exists, it needs to create the folder path and file. So I have part of it, but can't figure out some of it:
If file doesn't exist
If file does exist then
Dim fileNum As Integer
Dim fileName As String
fileNum% = Freefile()
fileName$ = "C:\Program Files\lotus\notes\notes.in i"
Open fileName$ For Append As fileNum%
Write #fileNum%, "Line I am going to add"
Close fileNum%
If file doesn't exist
If file does exist then
Dim fileNum As Integer
Dim fileName As String
fileNum% = Freefile()
fileName$ = "C:\Program Files\lotus\notes\notes.in
Open fileName$ For Append As fileNum%
Write #fileNum%, "Line I am going to add"
Close fileNum%
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Taken from Domino Document Manager (former DominoDoc) File Cabinet Template.
Open in new window