473,804 Members | 2,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Are there two ways to do a carrage return...?

Jay
Recieving data from an IRC server the controlchars.ne wline works to seperate
some pieces of data into their own lines. However it doesnt always work and
some whole pices of dat are LEFT OUT of the string array.

is there a known bug in the split function, or are there two ways to do
carrage returns? (new lines)
Nov 20 '05 #1
5 1403
* "Jay" <mr********@cin ci.rr.com> scripsit:
Recieving data from an IRC server the controlchars.ne wline works to seperate
some pieces of data into their own lines. However it doesnt always work and
some whole pices of dat are LEFT OUT of the string array.

is there a known bug in the split function, or are there two ways to do
carrage returns? (new lines)


Have a look at the response in a hex editor to see what characters are
used for line separation.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Hi Jay,

What mostly is used for a new line:
linefeed (dec 10)
or
cariage return (dec 13)
or
cariage return line feed (dec 13,10)

I hope this helps a very little bit?

Cor
Recieving data from an IRC server the controlchars.ne wline works to seperate some pieces of data into their own lines. However it doesnt always work and some whole pices of dat are LEFT OUT of the string array.

is there a known bug in the split function, or are there two ways to do
carrage returns? (new lines)

Nov 20 '05 #3
Hi Jay,

Please stay in the original threads, now I see that Herfried did already
answer your question in another thread.

Cor
Nov 20 '05 #4
Jay
It's been my experience that threads with answeres already in them (or
threads that appear to have answeres) are typically ignored.
"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:ub******** ******@TK2MSFTN GP11.phx.gbl...
| Hi Jay,
|
| Please stay in the original threads, now I see that Herfried did already
| answer your question in another thread.
|
| Cor
|
|
Nov 20 '05 #5

"> It's been my experience that threads with answeres already in them (or
threads that appear to have answeres) are typically ignored. | Please stay in the original threads, now I see that Herfried did already
| answer your question in another thread.


Hi Jay,

That is sometimes right, in some newsgroups frequently, however in this
newsgroup seldom. While I know that there are more by instance Csharp,
Adonet, General, which with telling those I am not saying that it is in
others not the same as with this, however from those I am not sure.

However, when that not wanted behaviour happens and you make a new message
tell that and a make as well a reference to your original message. Than the
one who answers you, start not completely new.

You have the change by doing it as now, that you will be ignored in time by
a lot of the regulars, the best thing to get good answers is by giving feed
back on your original question if it did help or not.

Than you will see that regulars will take more time, because they learn as
well from your answer back.

Cor


Nov 20 '05 #6

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

Similar topics

4
10161
by: Sidharta | last post by:
Hi all, how come this doesn't work????? # convert to unix new lines $text = preg_replace("/\r\n/", "\n", $text); # remove extra new lines $text = preg_replace("/\n+/", "\n", $text); is there better ways to remove extra new lines???
13
3798
by: J. Campbell | last post by:
I'm wanting to output a text header file in front of the data portion of an output file. However when I use "\n" or "endl" as end of line, it just puts a 0x0a in the file(which is non-printing)...in Windows you need the (0x0d 0x0a) pair, if you want a new-line in a text editor. What's the correct way to get this 2-byte sequence into a file? Thanks #include <iostream>
3
4686
by: new | last post by:
Question: What would be the best way to add carrage returns to a record, and would my method create alot of overhead and wasted space. What would be the best method to minimize overhead and wasted space. Scenario: Server MS SQL 2000 Table name= mitTickets Fields= problem,details, created, lupdate
1
1922
by: Frank | last post by:
Dumb question. Thanks to help from this group I have crteated text file resulting from an xml transformed by an xsl file. I need to imbed a carrage return to separate the element values. None of my texts have that. Can anybody help?
2
1090
by: Chua Wen Ching | last post by:
I believe each ways below will produce the same results. But may i know which one will be better and encourage to be used. Sample1: class Animal { public void GetWeight() { }
3
1897
by: Oliver Bleckmann | last post by:
hey, which ways are available i c++ to return multiple values i know u can use structs, any other methods? concrete question: i want to do sth. like this: returning two strings into stringvars data and type <data,type>=<string,stringsplittedAttribs() strucs would lead to big changes in source...
0
1423
by: raylopez99 | last post by:
Inspired by Jon, I did a demo prorgram showing three ways to declare predicates, in for example the "FindIndex" and "FindLastIndex" methods of Lists, but in general you can do this for any predicate. Note the most compact way is to use Lambda notation and anonymous functions, the first way shown below. The most 'intuitive' way is to 'hard code' the predicate using a predicate method, the second way shown below, but the best way (for me)...
9
2404
by: raylopez99 | last post by:
Here are two different ways of achieving a mediator pattern: the first, using circular references (for lack of a better way to describe it), but not using delegates, with the second using delegates. The first way is an adaptation from C++ for Dummies by Jeff Cogswell. But obviously it uses references not pointers. The second way (I'll post this later, as I haven't yet done it) will be adapted from the book C#3.0 Design Patterns by...
2
15950
by: O.B. | last post by:
I have operation within a class that marshals the data into a byte array. Below are three different ways that work. Are there any downsides to using one over the the other? public virtual byte ToRaw1() { byte byteArray = new byte; IntPtr pointer = Marshal.AllocHGlobal(Size); Marshal.StructureToPtr(this, pointer, false); Marshal.Copy(pointer, byteArray, 0, Size);
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9593
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10088
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9169
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5668
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.