473,404 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Text file INCLUDE with no line breaks

Hi again guys....

This is my first source of help, by far the best ASP intellectual
collective....Thanks in advance for any assistance...Anyway....

The forms I'm still working on (finishing touches) have one issue that
I've found in my testing....

I have online submission forms that email to a party and then also
append to a plain-text file. I have a link to an "archive" which is
just an ASP page with the top border and bottom border and then the
text file referenced as an "INCLUDE". The page displays beautifully,
showing the text file exactly like I want but the only issue is field
containing the text area for additional information has the
possibility to be several hundred characters. If I have no way to
break up the text it's VERY ugly to look at. Is there a way that I can
format the text that is being appended from the HTML fields to insert
a <BR> automatically after so many characters on one line? (Please
take note of the "explanation" field to get an idea of my potential
problem....

Code for the area of my ASP form that writes to the text file is as
follows;

*****START OF CODE SNIPPET*****

textfile.writeline "Name :" & Request.form("from")
textfile.writeline "<BR>"
textfile.writeline "Ext :" & Request.form("ext")
textfile.writeline "<BR>"
textfile.writeline "Consumer Name :" & Request.form("conname")
textfile.writeline "<BR>"
textfile.writeline "Company Name :" & Request.form("compname")
textfile.writeline "<BR>"
textfile.writeline "Address :" & Request.form("address")
textfile.writeline "<BR>"
textfile.writeline "City / State/ Zip :" &
Request.form("citystatezip")
textfile.writeline "<BR>"
textfile.writeline "Phone Number :" & Request.form("phonenumber")
textfile.writeline "<BR>"
textfile.writeline "Consumer / Repair Order Number :" &
Request.form("conrepnumber")
textfile.writeline "<BR>"
textfile.writeline "Subject :" & Request.form("subject")
textfile.writeline "<BR>"
textfile.writeline "Explanation :" & Request.form("explanation")
textfile.writeline "<BR>"
textfile.writeline "Date/Time Received :" & FormatDateTime(Now)
textfile.writeline "<BR>"
textfile.writeline "*****"
textfile.writeline "<BR>"

*****END OF CODE SNIPPET****

Now THIS is what the ASP page displays with the preceding code...All
information was test info I populated the HTML fields with to test the
page...

****START OF ASP PAGE OUTPUT****

Name :Joseph Josephs
Ext :1234
Consumer Name :Test Consumer
Company Name :Test and Co.
Address :1234 Testing Lane
City / State/ Zip :Jax, FL 32218
Phone Number :123-456-7890
Consumer / Repair Order Number :None
Subject :Back Order
Explanation :Test of writing to text file and inserting line breaks
for readability.
Date/Time Received :6/14/2004 3:42:34 PM
*****

****END OF ASP PAGE****
Jul 19 '05 #1
1 1997
HTML issue... put it into a table or a div with a fixed width...

--
http://www.aspfaq.com/
(Reverse address to reply.)


"dmiller23462" <dm**********@yahoo.com> wrote in message
news:59**************************@posting.google.c om...
Hi again guys....

This is my first source of help, by far the best ASP intellectual
collective....Thanks in advance for any assistance...Anyway....

The forms I'm still working on (finishing touches) have one issue that
I've found in my testing....

I have online submission forms that email to a party and then also
append to a plain-text file. I have a link to an "archive" which is
just an ASP page with the top border and bottom border and then the
text file referenced as an "INCLUDE". The page displays beautifully,
showing the text file exactly like I want but the only issue is field
containing the text area for additional information has the
possibility to be several hundred characters. If I have no way to
break up the text it's VERY ugly to look at. Is there a way that I can
format the text that is being appended from the HTML fields to insert
a <BR> automatically after so many characters on one line? (Please
take note of the "explanation" field to get an idea of my potential
problem....

Code for the area of my ASP form that writes to the text file is as
follows;

*****START OF CODE SNIPPET*****

textfile.writeline "Name :" & Request.form("from")
textfile.writeline "<BR>"
textfile.writeline "Ext :" & Request.form("ext")
textfile.writeline "<BR>"
textfile.writeline "Consumer Name :" & Request.form("conname")
textfile.writeline "<BR>"
textfile.writeline "Company Name :" & Request.form("compname")
textfile.writeline "<BR>"
textfile.writeline "Address :" & Request.form("address")
textfile.writeline "<BR>"
textfile.writeline "City / State/ Zip :" &
Request.form("citystatezip")
textfile.writeline "<BR>"
textfile.writeline "Phone Number :" & Request.form("phonenumber")
textfile.writeline "<BR>"
textfile.writeline "Consumer / Repair Order Number :" &
Request.form("conrepnumber")
textfile.writeline "<BR>"
textfile.writeline "Subject :" & Request.form("subject")
textfile.writeline "<BR>"
textfile.writeline "Explanation :" & Request.form("explanation")
textfile.writeline "<BR>"
textfile.writeline "Date/Time Received :" & FormatDateTime(Now)
textfile.writeline "<BR>"
textfile.writeline "*****"
textfile.writeline "<BR>"

*****END OF CODE SNIPPET****

Now THIS is what the ASP page displays with the preceding code...All
information was test info I populated the HTML fields with to test the
page...

****START OF ASP PAGE OUTPUT****

Name :Joseph Josephs
Ext :1234
Consumer Name :Test Consumer
Company Name :Test and Co.
Address :1234 Testing Lane
City / State/ Zip :Jax, FL 32218
Phone Number :123-456-7890
Consumer / Repair Order Number :None
Subject :Back Order
Explanation :Test of writing to text file and inserting line breaks
for readability.
Date/Time Received :6/14/2004 3:42:34 PM
*****

****END OF ASP PAGE****

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: sea | last post by:
I have text files in the following format: 123,34, ,345,890, 123,23 .. .. .. As you can see, the problem is that (1) the commas can occur in
8
by: Rune Johansen | last post by:
Hi, I'm sorry if these questions are trivial, but I've searched the net and haven't had any luck finding the information I need. I need to perform some regular expression search and replace on...
1
by: dmiller23462 | last post by:
Hi again guys.... This is my first source of help, by far the best ASP intellectual collective....Thanks in advance for any assistance...Anyway.... The forms I'm still working on (finishing...
0
by: Matt | last post by:
G'Day all, I'm creating an xml file using text retrieved from an HTML form, and using XSL to transform it to XSL:FO. I'm then using Tridec PDF.NET to turn the FO doc into PDF. The FO has a...
4
by: Rick | last post by:
I am fairly new to XML, I have an XML document that holds configurations for an ASP.NET application, within the configuration XML File I have a line of text that will feed into a lable on a web...
5
by: Johnny Meredith | last post by:
I have seven huge fixed width text file that I need to import to Access. They contain headers, subtotals, etc. that are not needed. There is also some corrupt data that we know about and can...
8
by: Les Coover | last post by:
The following is an example of input: 1 Les L 01/02/04 2300 06:00AM SW Nashville R 01/06/04 2400 10:00PM SW Kansas City L 01/15/04 2440 10:00AM NW Minneapolis R 01/15/04 3440 05:00PM NW...
2
by: Big D | last post by:
Hi all, I'm working on a little app that will go through a text file (right now a "rich text" document), and parse it into a pseudo-html that our flash programmers can use in their presentation....
2
by: Brett | last post by:
I'm writing something similar to this into a text file: txtfileError.WriteLine(CurrentDateTime(1) & " Error in Sub Sub1()" & idvar & Chr(10) & Chr(13) & ex.Message) txtfileError.WriteLine() ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.