"RicK" <rmarfisiNOAT@__SPAM_AT_SPAMinwind.it> wrote in message
news:dukni.60$...
> Hy guys,
>
> I'm sorry for my bad english,
>
> I have a problem writing a text file:
>
> I have this 2 lines:
> abcd = 0;zzzzzzzzzzzzzzzzzzzz
> fghi = 1;
> and I want delete all next ';' (zzzzzzzzzzzzzzz) but not erase the second
> line;
You say you have problem writing a text file. Which mean that you have it
in memory somehow to be able to write it (even if you read it from another
file).
Without knowing the specifics, it sounds as simple as getting rid of
everything past the ;. It may be as simple as:
Line = Line.substr(0, Line.find_first_of(';') );
Hard to know without seeing your code.
|