1) I am trying to open a binary file.
2) With a pointer value, I am trying to read the value in memory set by the pointer. But the first value I get I want to start the pointer from 0 to a specified...
Type: Posts; User: Blah937
1) I am trying to open a binary file.
2) With a pointer value, I am trying to read the value in memory set by the pointer. But the first value I get I want to start the pointer from 0 to a specified...
Hello Tim,
Yeah "is" came from a call to ifstream as "ifstream is;" and I used that to open a file of mine. As for the is.read, no idea. I jsut looked up the function to do what I needed it to do...
Yes, but I only posted that there as reference lol. I do actually change it to array_size= 1466861 in my code and that's when I get segmentation fault and I don't know whyyyyyyy.
What I dont understnd is why it works up until about 410,000 and then won't work after that and says "segmentation fault". I just don't get it.
K, I tried turning it in to a long,using a vector, and allocating memory and nothing worked :(
So I have an array, that works up to about int array_size = 410000; and then anything higher than that it says segmentation error. I want to be able to use array_size = 1470000; Help!!! (YES, it...
Thanks!
Declarations:
double datastore[11][1];
string dum1[6];
float value[11];
I am going through every line of code and copying and pasting it into a new file from a previous file because I am adding in a new column of data.
When I go through every column, the last row has...
Yeah, I'll just create a new file and write on it; I hope it works out for me! Eeeeeeek. Thanks Tabstop.
Yeah, i tried it all but the data isn't even being written to the file I want it too; I don't know what's going on.
Ohhh I see. Thanks tabstop. I had a misunderstanding of how the whole thing was compiled. Hm..... argv[2] is basically the file I read from to do the calculations I do and the one I try to write back...
Thanks tabstop. What function should I use? So far this is what I have...it's a loop that calculates something (in this case that something is "value"), then that something is what I am trying to add...
Hello everyone,
Basically, I have an ASCII file or .txt file with data like this:
Col1 Col2 Col3....
5 3
b 2
6 1
7 0