Search results for query: *

  1. V

    Searching Binary file

    Thanks man for yr help!!!;)
  2. V

    Searching Binary file

    Hi, See what i want to do is that i read the file using binary reader and search for a specific value within that file (eg. 122). Once its found, i want the position of that 122value within the file so that my program knows that where's that value within the file. Pls help
  3. V

    Searching Binary file

    Hi everyone, I would like to search a binary file (eg.Test.inf) for some data and get the position in return. For example; Suppose i have a file of 800 bytes and i would like to search for a specific byte value within that file i.e. 122 (i.e. value), how do i do it. Plus after searching the...
  4. V

    Binary Reading Problem

    Thanks CHEERS!!! it works i guess i was wrong somewhere. Well it was r.readbyte (mistyped it here)
  5. V

    Binary Reading Problem

    Adding bytes from a file I have a problem with my code: I would like to add all the bytes and display the sum in the textbox. I am using the following code: 'I am positioning to the first byte in the file r.BaseStream.Position = 0 dim i as integer dim z() as byte 'fs.length-1 will count...
  6. V

    Binary Reading Problem

    Hi all, I am trying to read a binary file using binary reader class. Can someone guide me as to how do i read a specific value in the binary file in terms of defining its position? For example: If the total number of bytes are 50 in the file. How do i extract the value of the 25th byte or...
  7. V

    FOR LOOP TO sum bytes

    i mean it does not sum the bytes from p2 to p50, instead it just shows the value of p2 as the sum.
  8. V

    FOR LOOP TO sum bytes

    Hi guys, I have a for loop with which i want to sum the bytes in a packet from the 3rd position to the 50th position (assuming that the number of bytes are 55). So i have done the following; dim i, sum as integer sum=0 for i = p2 to p50 sum=sum+i next It does not sum the bytes from...
  9. V

    SOCKETS...need help

    Is there a way of reading data from the socket. I mean if a socket has a packet of data, how can i read that packet's data to create appropriate files? This is because, i am sending data from remote site, and i have an asynchronous server running. I can detect connections but cannot read the...
  10. V

    Socket writing data to a file

    Dear everyone, I have an asynchrnous socket server accepting multiple connections from remote sites. I have a function called "Writedatafile" which reads the packet, and writes the data from each packet to a separate binary file. - In the code section of : PrivateSub readCallback(ByVal ar...
  11. V

    SOCKET ... ERROR please help

    Yes sorry, i meant imports system.net.sockets but still the problem comes Can you help?
  12. V

    SOCKET ... ERROR please help

    I am writing up a server socket program in vb.net. I have a class: server.vb inside which i declare a socket as follows: imports system.net imports system.net.socket public class server dim sck as socket . . I get the following error on compilation Type Expected and it underlines...
Back
Top