Need help on csv
Page 1 of 612 12 LastLast
Results 1 to 10 of 13

Thread: Need help on csv

  1. #1
    Can some developer please help me.
    H = FileOpen(D.csv,FILE_READ | FILE_WRITE,';'-RRB-;
    opened the file and
    compose it
    FileWrite(H,Open[0]);
    with dual H announced
    but
    double C;
    if(Hgt;0)

    CFileReadNumber(H);
    FileClose(H);

    does not read anything.
    Error 4051.
    Also, how to make it write to next column instead of placing delimiter ';'?
    Thanks Beforehand.

  2. #2
    I understand that the question is tough. It is one of the things in the programming and not the answer is known by all developers.
    Can there be on this forum some programmer who understands the answer?
    Looks like nobody understands.

  3. #3
    Quote Originally Posted by ;
    I understand the question is hard. It's one of the points in the programming rather than all developers know the solution.
    Is there on this forum some programmer who understands the answer?
    Looks like nobody understands.
    Nobody knows based on the pitiful information you have posted. Instead of just imagining snippets of code which do not paint the picture of exactly what your mistake laden program is performing not post the file so somebody can dig it and clean up the mess you left behind?

  4. #4
    Magnumfreak,
    Thank You for the reply.
    I know you're an expert in programming. I saw your posts.
    Here you go:
    double H;
    H= FileOpen(D.csv,FILE_READ | FILE_WRITE,';'-RRB-;
    if(Hgt;0)

    FileWrite(H,Open[0]);//, Close[0]);// delimiter ';' is added
    FileClose(H);

    double C;
    if(Hgt;0)

    C=FileReadNumber(H);
    FileClose(H);

    //Comment(C);
    Comment(GetLastError());
    return(0);
    }
    it cannot read the number and it lays ';' instead of writing into the next column

  5. #5
    What's the data type of file handles? Highlight FileOpen and hit F1.

  6. #6
    Quote Originally Posted by ;
    Magnumfreak,
    thanks for the Answer.
    I know you're an expert in programming. I saw your posts.
    Here you go:
    double H;
    H= FileOpen(D.csv,FILE_READ | FILE_WRITE,';'-RRB-;
    if(Hgt;0)

    FileWrite(H,Spacious[0]);//, Close[0]);// delimiter ';' is inserted
    FileClose(H);

    double C;
    if(Hgt;0)

    C=FileReadNumber(H);
    FileClose(H);

    //Comment(C);
    Comment(GetLastError());
    return(0);
    }
    it cannot read the number and it sets ';' instead of writing to another column
    Probably because you shut the file once you write the data to it you never re open the file prior to attempting to read out of it.

  7. #7
    Magnumfreak,

    it works!!! Thank you.
    May I ask you how to write to
    the next column since
    it inserts delimiter within the exact same column.
    I tried and it did not
    work.
    Please assist.
    Thank you.

  8. #8
    FileSeek(handle, 0, SEEK_END);

    Just tell it to move into the end of the file Using All the FileSeek command.

  9. #9
    I didn't try but I could not make it.
    But did it other way and it works also.
    But thanks to your time.
    Can I ask you next assistance?
    H= FileOpen(DD.csv,FILE_CSV, ';'-RRB-;
    double C;
    if(Hgt;0)

    C =FileReadNumber(H);//allow me believe
    FileClose(H);

    Comment(C);
    1) the way to read the amount that's at 2nd line of the 2nd row
    2) is it possible to get Open[0] into the document
    from the next broker?
    Thank you very much.

  10. #10
    Help pleases, since Magnumfreak is busy.
    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.