Search results for query: *

  • Users: vish707
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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