Search Search

#1 worldwide
FREE Coding Lessons

since 1996
   THE BEST WAY to learn ASP & Asp.net!
Advertise Here!
click for details
Credits Host:
DiscountASP.net
Server Admin:
The "Team"
Contact Info.
Charles M. Carroll

my Blog
[prev. Lesson]  Text Files: Writing Them on Server
     [next Lesson]  Text Files: Meyers-Briggs parsing #2

Reading/Parsing an ASCII File by Charles Carroll

Let us say you have an ASCII file of questions that you want to convert to HTML (listing below). The next page will show you the typical parsing code used for such a task.

   filename=/learn/test/mb.txt

<Test Script Below>


EI At a party do you - interact with many, including strangers / interact with a few, known to you
SN Are you more - realistic than speculative / speculative than realistic
SN It is worse to - have your "head in the clouds" / be "in a rut"
TF Are you more impressed by - principles / emotions
TF Are you more drawn toward the - convincing / touching
JP Do you prefer to work - to deadlines / just "whatever"
JP Do you tend to choose - rather carefully / somewhat impulsively
EI At parties do you - stay late, with increasing energy / leave early, with decreased energy
SN Are you more attracted to - sensible people / imaginative people
SN Are you more interested in - what is actual / what is possible
TF In judging others are you more swayed by - laws than circumstances / circumstances than laws
TF In approaching others is your inclination to be - objective / personal
JP Are you more - punctual / leisurely
JP Does it bother you more having things - incomplete / completed
EI In your social groups do you - keep abreast of other's happenings / get behind on the news
SN In doing ordinary things are your more likely to - do it the usual way / do it your own way
SN Writers should - "say what they mean and mean what they say" / express things more by use of analogy
TF Which appeals to you more - consistency of thought / harmonious human relationships
TF Are you more comfortable in making - logical judgments / value judgmants
JP Do you want things - settled and decided / unsettled and undecided
JP Would you say you are more - serious and determined / easy-going
EI In phoning do you - rarely question that it will all be said / rehearse what you'll say
SN Facts - "speak for themselves" / illustrate principles
SN Are visinaries - somewhat annoying / rather fascinating
TF Are you more often - a cool-headed person / a warm-hearted person
TF Is it worse to be - unjust / merciless
JP Should one usually let events occur - by careful selection and choice / randomly and by chance
JP Do you feel better about - having purchased / having the option to buy
EI In company do you - initiate conversation / wait to be approached
SN Common sense is - rarely questionable / frequently questionable
SN Children often do not - make themselves useful enough / exercise their fantasy enough
TF In making decisions do you feel more comfortable with - standards / feelings
TF Are you more - firm than gentle / gentle than firm
JP Which is more admirable - the ability to organize and be methodical / the ability to adapt and make do
JP Do you put more value on the - definite / open-ended
EI Does new and non routine interaction with others - stimulate and energize you / tax your reserves
SN Are you more frequently - a practical sort of person / a fanciful sort of person
SN Are you more likely to - see how others are useful / see how others see
TF Which is more satisfying - to discuss an issue thoroughly / to arrive at agreement on an issue
TF Which rules you more - your head / your heart
JP Are you more comfortable with work that is - contracted / done on a casual basis
JP Do you tend to look for - the orderly / whatever turns up
EI Do you prefer - many friends with brief contact / a few friends with more lengthy contact
SN Do you go more by - facts / principles
SN Are you more interested in -production and distribution / design and research
TF Which is more of a compliment - "There is a very logical person." / "There is a very sentimental person."
TF Do you value in yourself more that you are - unwavering / devoted
JP Do you more often prefer the - final and unalterable statement / tentative and preliminary statement
JP Are you more comfortable - after a decision / before a decision
EI Do you - speak easily and length with strangers / find little to say to strangers
SN Are you more likely to trust your - experience / hunch
SN Do you feel - more practical than ingenious / more ingenious than practical
TF Which person is more to be complimented - one of clear reason / strong feeling
TF Are you inclined more to be - fair minded / sysmpathetic
JP Is it preferable mostly to -make sure things are arranged / just let things happen
JP In relationships should most things to - renegotiable / random and circumstantial
EI When the phone rings do you - hasten to get to it first / hope someone else will answer
SN Do you prize more in yourself - a strong sense of reality / a vivid imagination
SN Are you drawn more to - fundamentals / overtones
TF Which seems the greater error - to be too passionate / to be too objective
JP Do you see yourself as basically - the structured and scheduled / the unstructured and unscheduled
JP Are you a person that is more - routinized than whimsical / whimsical than routinized
EI Are you inclined to be - easy to approach / somewhat reserved
SN In writings do you prefer - the more literal / the more figurative
SN Is it harder for you to - identify with others / utilize others
TF Which do you wish more for yourself - clarity of reason / strength of compassion
TF Which is the greater fault - being indiscriminate / being critical
EI Do you prefer the - planned event / unplanned event
JP Do you tend to be more - deliberate than spontaneous / spontaneous than deliberate

Chaz Wish List
Tall Tip $5
Grande Tip $20
Venti Tip $39
Tip Jar Thanks
2004 Thanks
2005 Thanks
HUGE Tip -love site