Category talk:Plain English-output

From Rosetta Code

Source code[edit]

\ Change these paths if you prefer to change them.
\ It is your responsibility to clean up the output.txt file.
The output directory is a directory equal to "C:\output\".
The output path is a path equal to "C:\output\output.txt".

To write a number to the output:
Privatize the number.
Convert the number to a string.
Write the string to the console.
Write the string to the output path.

To write a number to the output without advancing:
Privatize the number.
Convert the number to a string.
Write the string to the console without advancing.
Write the string to the output path without advancing.

To write a string to the output:
Write the string to the console.
Write the string to the output path.

To write a string to the output path:
If the output directory is not in the file system, create the output directory in the file system.
If the output path is not in the file system, create the output path in the file system.
Read the output path into a buffer.
Append the string then the return byte to the buffer.
Write the buffer to the output path.

To write a string to the output path without advancing:
If the output directory is not in the file system, create the output directory in the file system.
If the output path is not in the file system, create the output path in the file system.
Read the output path into a buffer.
Append the string to the buffer.
Write the buffer to the output path.

To write a string to the output without advancing:
Write the string to the console without advancing.
Write the string to the output path without advancing.