Thanks for the help I got from y'all last time my code has worked perfectly.
I'm writing a simple code that will read in a number from "Numb_BBH.txt", given that number it will randomly pick said number of lines from "Realizations.txt" and have the output go into "Galaxy1.txt, Galaxy2.txt ...".
It has been working perfect, except I need it to only pick a line that has the value of the last column less than 2000.00
The second txt file is "Realizations.txt" is 32496 lines long, the following is the first line:
Line 35 is randomly grabbing a line from the EllipticalLISASources.dat file which has 379 lines, and throwing it to char c.
No, it's not. It's seeking to a random location within the first 380 bytes in the file. One shouldn't seekg to locations in text files that have not been returned by a call to tellg.
I thought that in line 39 I was separating the line into its different columns. and in line 40 it was throwing the last column into that col6 int.
c is of type char. col1 is of type char. When you see c >> col1 it means shift the bits in ccol1 bits to the right. Then you bitshift the result of that col2 bits to the right, and so on. Line 39 has no effect. Nor does line 40. They could be completely blank and they would have the same impact on your program.