By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,791 Members | 1,314 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,791 IT Pros & Developers. It's quick & easy.

Split the data in Text file After Receiving it using Mscomm

P: 4
Hi All...
I am using MSComm to receive data serially in a text box. The data being recieved is 1A2B3C1A2B3C1A2B3C...........so on... I have read this into a text file. So I am now getting 1A2B3C1A2B3C1A2B3C...........so on...in the text file.Now I have to get as
1A
2B
3C
1A
2B
3C
1A
2B
3C
... so on.
Could you please help me out so that I can do the data plotting next.
Your help is urgently needed.
Thank You:)
Mar 28 '07 #1
Share this Question
Share on Google+
2 Replies


Expert 5K+
P: 8,434
Once you have this in a string, you can just use a FOR loop to grab each pair of characters in turn, and write it to your output file.

I think that before we can really provide much more help, we'd need more specific details about what version of VB you're using, and the code that you've done so far.
Mar 29 '07 #2

vijaydiwakar
100+
P: 579
boss pls explain in detail
Mar 29 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.