Search:

Type: Posts; User: Blah937

Search: Search took 0.00 seconds.

  1. How to use fstream or istream to read a binary file and write out what's in it?

    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...
  2. Replies
    13
    Views
    1,614

    Hello Tim, Yeah "is" came from a call to...

    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...
  3. Replies
    13
    Views
    1,614

    Yes, but I only posted that there as reference...

    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.
  4. Replies
    13
    Views
    1,614

    What I dont understnd is why it works up until...

    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.
  5. Replies
    13
    Views
    1,614

    K, I tried turning it in to a long,using a...

    K, I tried turning it in to a long,using a vector, and allocating memory and nothing worked :(
  6. Replies
    13
    Views
    1,614

    Segmentation Error Help!

    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...
  7. Replies
    4
    Views
    3,883

    Thanks! Declarations: double...

    Thanks!

    Declarations:




    double datastore[11][1];
    string dum1[6];
    float value[11];
  8. Replies
    4
    Views
    3,883

    How to remove null characters?

    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...
  9. Replies
    8
    Views
    12,909

    Yeah, I'll just create a new file and write on...

    Yeah, I'll just create a new file and write on it; I hope it works out for me! Eeeeeeek. Thanks Tabstop.
  10. Replies
    8
    Views
    12,909

    Yeah, i tried it all but the data isn't even...

    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.
  11. Replies
    8
    Views
    12,909

    Ohhh I see. Thanks tabstop. I had a...

    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...
  12. Replies
    8
    Views
    12,909

    Thanks tabstop. What function should I use? So...

    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...
  13. Replies
    8
    Views
    12,909

    How to add a column of data to a .txt file?

    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
Results 1 to 13 of 13