UtterAccess HomeUtterAccess Wiki

Welcome Guest ( Log In | Register )

Custom Search
Edit Discussion
> StringToFile    

This function outputs the contents of a VBA string to the specified file.

CODE

' StringToFile
' http://www.utteraccess.com/wiki/index.php/StringToFile
' Code courtesy of UtterAccess Wiki
' Licensed under Creative Commons License
' http://creativecommons.org/licenses/by-sa/3.0/
'
' You are free to use this code in any application,
' provided this notice is left unchanged.
'
' rev  date                          brief descripton
' 1.0  2012-01-17                    
'
Public Function StringToFile( _
   SourceString As String, _
   DestFile As String _
   )
 'prelim, no validations yet
 Dim i As Integer
 
 i = FreeFile
 
 Open DestFile For Append As #i
   Print #i, SourceString
 Close #i

End Function


Creative Commons License
StringToFile by UtterAccess Wiki is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Editing and revision of the content is freely encouraged; for details, see Expected Usage.

Edit Discussion
Custom Search
Thank you for your support!
This page has been accessed 4,814 times.  This page was last modified 10:51, 17 January 2012 by Jack Leach.   Disclaimers