can you help answer me this?
http://www.vbforums.com/showthread.p...019#post935019
Printable View
can you help answer me this?
http://www.vbforums.com/showthread.p...019#post935019
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?
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!)