Product Logo

POP3it Pro

Email downloading made easy.

Functions
FunctionPOP3it_Adv_AddAccount
FunctionPOP3it_Adv_Connect
FunctionPOP3it_Adv_ConnectFile
FunctionPOP3it_Adv_Delete
FunctionPOP3it_Adv_DeleteAll
FunctionPOP3it_Adv_Disconnect
FunctionPOP3it_Adv_GetAccountOption
FunctionPOP3it_Adv_GetAttachment
FunctionPOP3it_Adv_GetAttachmentCount
FunctionPOP3it_Adv_GetAttachmentFileName
FunctionPOP3it_Adv_GetBody
FunctionPOP3it_Adv_GetDate
FunctionPOP3it_Adv_GetFullSource
FunctionPOP3it_Adv_GetHeader
FunctionPOP3it_Adv_GetMessageCount
FunctionPOP3it_Adv_GetSize
FunctionPOP3it_Adv_GetUniqueID
FunctionPOP3it_Adv_GoToMessage
FunctionPOP3it_Adv_HasBodyType
FunctionPOP3it_Adv_IsConnected
FunctionPOP3it_Adv_RemoveAccount
FunctionPOP3it_Adv_SaveAttachment
FunctionPOP3it_Adv_SetAccountOption
FunctionPOP3it_Adv_UndeleteAll
FunctionPOP3it_CheckAccount
FunctionPOP3it_CheckFile
FunctionPOP3it_Configure
FunctionPOP3it_ConfigureAccount
FunctionPOP3it_DisplayMessage
FunctionPOP3it_File_Copy
FunctionPOP3it_File_Delete
FunctionPOP3it_File_Exists
FunctionPOP3it_File_Export
FunctionPOP3it_File_Import
FunctionPOP3it_File_Move
FunctionPOP3it_File_Read
FunctionPOP3it_File_Rename
FunctionPOP3it_File_SelectWithDialog
FunctionPOP3it_File_Size
FunctionPOP3it_File_Timestamp
FunctionPOP3it_File_Write
FunctionPOP3it_Folder_Create
FunctionPOP3it_Folder_Delete
FunctionPOP3it_Folder_Exists
FunctionPOP3it_Folder_GetPath
FunctionPOP3it_Folder_List
FunctionPOP3it_Folder_Rename
FunctionPOP3it_Folder_SelectWithDialog
FunctionPOP3it_GetAccountNames
FunctionPOP3it_QuoteMessage
FunctionPOP3it_Register
FunctionPOP3it_StatusWindow
FunctionPOP3it_Version
FunctionPOP3it_VersionNumber

POP3it_File_Write

NamePOP3it_File_Write
Description

Writes data out to a file.

Return TypeText
FormatPOP3it_File_Write ( Data ; File ; FileExistsAction ; CharacterSet ; LineEndingType ; IncludeUnicodeBOM )
Required Parameters
Data

The data to write.

File

The path and file name of the file to write.

Optional Parameters
FileExistsAction

Defines what happens if the file already exists. Specify “Abort” to abort the function. [This is the default.] Specify “Overwrite” to overwrite the file. Specify “Backup” to backup the existing file before creating a new version. Specify “Append” to append the new data to the end of the existing file. Specify “Unique” to create a new file with a unique file name to write the data to.

CharacterSet

The character set for the file. [Default is UTF-8.]

LineEndingType

The type of line endings to use. Specify “System” to use the correct line endings for the system. [This is the default.] Specify “Mac” for Macintosh stlye CR line endings. Specify “Win” for Windows style CRLF line endings. Specify “Unix” for Unix style LF line endings. Specify “None” to not modify the line endings.

IncludeUnicodeBOM

If True, and the character set is a unicode set, and the file is being created, this will include a unicode byte order mark. [Default is False.]

Examples
Example 1

Writes the data "My Data" to the "Data.txt" file.

POP3it_File_Write ( "My Data" ; "~/Desktop/Data.txt" )
Example 2

Writes the data "My Data" to the "Data.txt" file and overwrites the file if it already exists.

POP3it_File_Write ( "My Data" ; "C:\Users\Bob\Desktop\Data.txt" ; "Overwrite" )
Example 3

Creates a new "Data.txt" file with the data "My Data" in it and backs up the existing "Data.txt" file. It also writes a unicode BOM to the file.

POP3it_File_Write ( "My Data" ; "~/Desktop/Data.txt" ; "Backup" ; "" ; "" ; True )