fileWriteAll

 

 

Overview

The fileWriteAll function writes the specified argument as the entire contents of the specified path and file name {filePathName}.

Usage

The fileWriteAll function is used to write the entire contents of a file from memory. For instance the following Lisp code shows how to write the entire contents of the test.txt file from memory. Notice how the _path variable is appended to the file name to make sure that a full path and file name are passed to the fileReadAll function.

(fileWriteAll (append _path "/" test.txt") fileContents) ;; Write the entire contents of test.txt

 

Syntax


Expression:(fileWriteAll filePathName fileContents) ;; Writes the entire contents of the specified path and file name

Arguments Name Type Description
Argument:filePathNameString Text The path and file name to be written.
Argument:fileContentsString Text ByteVector The contents of the file to be written.

Returns: Always returns true


 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

Text String ByteVector

Here are also a number of links to functions having arguments with any of these data types.

*= addMethod appendWriteln append
balance binaryInsert binarySearch bitwiseNot
boolean char character clean
closeLog code compareEQ compareGE
compareGT compareLE compareLT compareNE
compare comparison compress cons
count date day days360
debugBrowsableProcs debugDetective debugEval decode
dimension disassemble display downcase
encode evalInSyncLocalContext eval exportCsv
exportSbf exportTab fdisplay fileClose
fileCopy fileDir fileDisplay fileEraseDir
fileErase fileExists fileMakeDir fileOpen
fileReadAll fileReadRecord fileRead fileSizeOf
fileWriteAll fileWrite filewriteln find
hashString hour importCsv importSbf
importTab insert inside inspect
integer isAtom isBitVector isBoolean
isByteVector isCharAlphabetic isCharAlphanumeric isCharLowercase
isCharName isCharNumeric isCharUppercase isCharWhitespace
isChar isCharacter isComplex isDate
isDictionary isDirectory isEqual isError
isFloatVector isIdentical isInside isIntegerVector
isInteger isLambda isMatrix isMember
isMoney isNumberMatrix isNumberVector isNumber
isObjectVector isObject isPair isPcodeVector
isString isStructure isSymbol isText
isType isVector julian left
length list loadModule loadObject
loadWorkspace macroReplace makeQuotedList makeQuotedSymbol
member mid minute money
month new number offset
openLog pair parent parse
pointer qt ref remove
replace rept right run
saveImmediate saveModule saveObject saveRepository
saveWorkspace second setCar setCdr
setLastCdr set setf setq
sizeof sort sql stringCiEQ
stringCiGE stringCiGT stringCiLE stringCiLT
stringCiNE stringFill stringToBVector stringToVector
string submit substitute substringCiEQ
substringCiGE substringCiGT substringCiLE substringCiLT
substringCiNE substringEQ substringFill substringGE
substringGT substringLE substringLT substringNE
substring symbolToTypeCode symbol system
text time trim type
uncompress uniqueInsert upcase vectorFill
writelg writeln year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE