Results 1 to 3 of 3

Thread: "Save Target As" ruins my txt file formats

  1. #1

    Thread Starter
    Fanatic Member mikeycorn's Avatar
    Join Date
    Jun 2000
    Location
    Aliso Viejo, CA, USA
    Posts
    526

    "Save Target As" ruins my txt file formats

    ~ mikeycorn

    With over 45,000 Questions in the User Submitted Database, it's the Most Popular Quiz Creation Software on the Net:

    PEST - The Personal Exam Self-Tester

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    umm, try to open it with something besides notepad. I had this problem with notepad before when I was trying to write a simple PHP script, but I solved it when I changed the new line character. Is it a script or something that you are making?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    Fanatic Member mikeycorn's Avatar
    Join Date
    Jun 2000
    Location
    Aliso Viejo, CA, USA
    Posts
    526
    Well, the thing is, it ruins the format not just in the way it looks in Notepad, but the way the program is expecting it to be formatted as well.

    They're scripts for my quiz program, and to make it real simple for someone to whip one up in notepad, the program relies on line breaks alone to differentiate between the questions and the answers.

    Here's a quick bit from the readme:

    ***** CREATING YOUR OWN PEST QUIZZES *****



    The .pxt databases are very easy to create if you follow a few simple rules. Enter your quiz
    using Notepad or WordPad, or any other word processing program that allows you to save files as
    text documents. Your PEST quizzes must be saved as unformatted text documents. To make sure of
    this, when the "Save As" screen opens, check that the "Save as type" field (located just beneath
    the "File name" field) is set to "Text Documents".
    Once you are done entering the quiz into your word processor and the file is saved as a text
    document, you will then need to change the file extension from .txt to .pxt. To do this, simply
    open up the PEST, and skip past the "Select the .pxt database" screen that automatically opens up
    by clicking Cancel. This will take you to the main quiz screen without actually loading a quiz.
    From the main quiz screen, select Edit from the menu up top and then select "Convert .txt File to
    .pxt". Browse to the text file you just made and double-click the file to convert it. (PEST
    only looks for .pxt files so if you forget to do this, PEST will not be able find your quiz!)
    Once the quiz is converted to .pxt, simply select File | Open from the menu and load your quiz.


    Code:
       ***   Follow This Format for Creating Multiple Choice Quizzes:   ***
    
    (first line)---   QUESTION
                      ANSWER
                      ANSWER
                      *CORRECT ANSWER
                      ANSWER
                      (empty line)
    (2nd question)-   QUESTION
                      *CORRECT ANSWER
                      ANSWER
                      *CORRECT ANSWER
                      ANSWER
                      (empty line)
    (True/False)---   QUESTION
                      *T
                      F
                      (empty line)
    (make sure that the last line after the last question of your database is a single empty line!)
    ~ mikeycorn

    With over 45,000 Questions in the User Submitted Database, it's the Most Popular Quiz Creation Software on the Net:

    PEST - The Personal Exam Self-Tester

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width