Shop OBEX P1 Docs P2 Docs Learn Events
Creating text files using p-basic — Parallax Forums

Creating text files using p-basic

robo04robo04 Posts: 7
edited 2009-02-26 23:50 in BASIC Stamp
Is it possible to creat text files using p-basic?

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-02-26 22:53
    In a roundabout way, yes ... sort of. Here's how:

    1. Load your PBASIC program, which will output the text you want in the file to the DEBUG screen.

    2. Let it run to completion with the DEBUG screen open.

    3. Using your mouse, select all the text in the DEBUG screen.

    4. Click ctrl-C to copy the selected text to the clipboard.

    5. Open a text editor, such as Notepad.

    6. Click ctrl-V to paste the DEBUG text.

    7. Save to a fle.

    This is how I do it at least. I'm sure there are terminal emulator programs that can save incoming data to a file automatically — maybe even the evil HyperTerminal, which I do not use.

    -Phil
  • SRLMSRLM Posts: 5,045
    edited 2009-02-26 23:50
    You can also use the Datalogger USB interface with a USB thumb drive, and create all sorts of files on there (autonomously).
Sign In or Register to comment.