-
a simple way to write to a file
In my programs I use the folloing code to read in data from a notebook file into my program.
Open "P:\corp\14211\For ATransfer\ATMTaddList.txt" For Input As #4
Do
i = i + 1
ReDim Preserve sListOfAllEmailAdd(i) As String
Line Input #4, sListOfAllEmailAdd(i)
'Debug.Print sUsersArray(i)
Loop Until sListOfAllEmailAdd(i) = "<>"
Close #4
This works fine and is very easy and simple to use. Now I want to write data to a notebook file and I was wondering if there is a nice and simple way to do that?
-
Sure. The following will write an email to the end of the text file
Open "P:\corp\14211\For ATransfer\ATMTaddList.txt" For Append As #1
Print #1, "Emailaddress@domain.co.uk"
Close #1
Hope this helps
Debs
-
This works great. Just what I needed.
Thanks
Similar Threads
-
By jsgasking in forum C++
Replies: 4
Last Post: 08-28-2008, 05:42 PM
-
Replies: 1
Last Post: 04-27-2008, 05:04 AM
-
Replies: 2
Last Post: 04-30-2007, 07:22 AM
-
By JavaFaces in forum Java
Replies: 1
Last Post: 02-14-2006, 08:04 AM
-
By JavaFaces in forum Java
Replies: 0
Last Post: 02-12-2006, 07:27 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|