Forgot password?

Create an account!

Scripts

« back

Read and write a txt-file

Description RhinoScript Library

RhinoScript Library by Johannes

Function to write and read a txt-file with strings on different lines.
Usefull to safe results in a txt-file which you want to use later in another script, or to print your results from the txt-file.

Version

Version 1 (Feb 08, 2008)

Requirements

Rhino version: Rhino 4

Libraries: Get temp directory (version 1) by Johannes

Code

You need to be logged in to view the source code.

Download

You need to be logged in to download the script.

Recommend

Why are these buttons gray?

Comments
  • 2. andrea (Jun 09, 2010 23.18):

    Hi is it possible to have a function that reads and writes a binary file?

    thanks

    Andrea

  • 1. Hanno (Feb 11, 2008 19.55):

    This is more a tutorial than a library, because it shows how to deal with text files, but you cannot really use it directly... maybe we should introduce a fouth script type: "tutorial"

  • +++ Feb 08, 2008 19.57: Read and write a txt-file version 1 published +++