On Wednesday, April 10, 2002, at 01:34 PM, @fro @ndy wrote:
> Hi, > Once again i have another problem regarding my message board lol. This > time the message board is fine but i have made an admin so that it will > read the contents of a text file where all the entries are printed to and > display them into a <textarea> so that i can easily remove/change > messages. > Below is the code for the script... > > <snip> > > ....the problem that i am faced with is when it prints to the file called > test.txt a little symbol comes up where the next line should be. I tried > to paste the symbol onto here but it just goes to the next line without > showing it. Here is what the text file looks like: > Andrew#Hello<<Funny symbol goes here>>James#Nice Board > > This is how i would LIKE it too look like: > Andrew#Hello > James#Nice Board > > ANY HELP YOU COULD SEND ME WOULD BE MUCH APPRECIATED :o) > > Andrew > sounds like the file isn't a unix file with \n at line end. mac or windows file? check it with: hexdump -C <filename> and see what control characters are at end of line. or just write a quick script to check for '0d' and print "yes" if there are. if any '0d' you could filter those in your program. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]