Print Preview ActiveX Active Users: 66 / Visits Today: 304
Highest Active Users: 99
Print Preview ActiveX
Home | Profile | Register | Active Topics | Members | Search | FAQ | RSS
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Print Preview
 Help file
 FileToString - Function
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic: FillStyle - Property Topic Next Topic: DriverName - Property  

emiel
Administrator

Belgium
327 Posts

Posted - 07/16/2005 :  13:40:21  Show Profile
Function FileToString

Action:

This function reads a file from disk and converts its text contents to a string.

Syntax:

FileToString (strPathFile As String) As String

Parameter   Description                              
  • PathFile Path and Filename of file to be read

    Remarks:

    The content of the file is read and concatenated between vbLf characters.

    If the file cannot be opened, the string "File error" is returned.

    Example:

    To input a string from a file:

    Dim strFile as String
    strFile = Preview.FileToString("C:\Letter.txt")

    Come and visit :
    www.immoassist.com
    www.ppreview.net
    www.vbdiamond.com
    www.d2dsources.com
    www.mandix.com
    Go to Bottom of Page
      Previous Topic: FillStyle - Property Topic Next Topic: DriverName - Property  
     New Topic  Topic Locked
     Printer Friendly
    Jump To:
    Print Preview ActiveX © Mandix Go To Top Of Page
    This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.02