|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Read file into buffer vb.net
Hi,
How can i read each char or number in a textfile into a seperate buffer. So if i have tea in the text file it will read t into buffer1, e into buffer2, and so on. Code:
Private Sub Buttoncontohex_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonContohex.Click
'Read in c:\message.txt and converts the ascii to Hex format and displays it in a text box
Dim objReader As New IO.StreamReader("C:\message.txt", System.Text.Encoding.Default)
Dim strData As String = objReader.ReadToEnd
objReader.Close()
End Sub
|
|
#2
|
|||
|
|||
|
You have double post in this section of forums.
|
|
#3
|
||||
|
||||
|
If you want individual characters, you already have them in strData. You can address individual characters with strData[index]. Or you can call strData.ToCharArray() to get a char[].
|
|
#4
|
|||
|
|||
|
hi,
I am not sure how to read each char or number in the message into seperate buffers, next i need to add a sequence header and send them in order to another buffer. But i am not sure how to do this |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > .Net Development > Read file into buffer vb.net |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|