Non credo di aver capito ma vabbèOriginariamente inviato da GliderKite
Be dipende, credo che chi chieda qua, indipendentemente da lui, difficilmente si sarebbe posto il problema con la struttura dati da me utilizzata, vista la domanda. Non credi?![]()
E' quasi sempre così anche se non è garantito che lo sia: lo standard prevede come modalità di apertura r, w, a, rb, wb, ab, r+, w+, a+, r+b (o rb+), w+b (o wb+), a+b (o ab+). Nel caso non sia una di queste, il comportamento ufficialmente è indefinito anche se:Originariamente inviato da GliderKite
Per quanto riguarda "rt", avevo letto su cplusplus : Additional characters may follow the sequence, although they should have no effect. For example, "t" is sometimes appended to make explicit the file is a text file.
sono i "might" che preoccupano ;DIf the string begins with one of the above sequences, the implementation might choose to ignore the remaining characters, or it might use them to select different kinds of a file