FileTools[Text]
WriteCharacter
write a single character to a file
Calling Sequence
Parameters
Description
Examples
WriteCharacter(file, char)
file
-
file descriptor or filename
char
string of length 1
The WriteCharacter(file, char) command writes the character char to file.
If file is the name of a file that has not been opened, Maple attempts to open the file before writing the character. If the file does not exist, it is created.
An error is raised if file is not a valid descriptor or it refers to a file that cannot be opened.
FileToolsTextWriteCharacter⁡testfile,a
1
FileToolsTextWriteCharacter⁡testfile,b
FileToolsTextWriteCharacter⁡testfile,c
FileToolsTextClose⁡testfile:
FileToolsTextReadString⁡testfile
abc
FileToolsRemove⁡testfile
See Also
FileTools[Remove]
FileTools[Text][Close]
FileTools[Text][Open]
FileTools[Text][ReadCharacter]
FileTools[Text][ReadString]
IO_errors
Download Help Document