|
-
Apr 16th, 2002, 11:56 AM
#1
Thread Starter
Fanatic Member
"Save Target As" ruins my txt file formats
-
Apr 16th, 2002, 12:33 PM
#2
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!!
-
Apr 16th, 2002, 12:43 PM
#3
Thread Starter
Fanatic Member
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!)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|