i have a question about reading from a binary file.what if i want to start reading a file from a certain line of the file and end the reading to a certain line too?
is there a way to do this using an ifstream?
thanks for your help
so i tried something like this
but i'm still not sure i got the whole idea:
long from = atoi(argv); //argv is the line number i want to begin //reading the file
long to = atoi(argv); //argv is the line number i want to stop
fp.open (argv); //argv is the name of the file
throw "File not found ";
pos = from;
finalpos = to;
Dim Adapter As New OleDbDataAdapter
Dim Command As New OleDbCommand
Dim xFrom As String = dtpFrom.Value.ToString.Substring(0, dtpFrom.Value.ToString.IndexOf(" "))
Dim xTo As String = dtpTo.Value.ToString.Substring(0, dtpTo.Value.ToString.IndexOf(" "))
sqlQuery = MainQuery ...