Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
FGETS() AND FREAD()
Hello All,
I'm receiving oracle files where I don't know for sure what the carriage return is (whether it's a chr(13) or a chr(13) + chr(10).
So, I open the file with an fopen(), I do a fgets() to find the length of a record, an fseek() to return to the top of the file and then an fread() with the length of a record * 2 which should bring down the carriage return for me to examine.
The problem I am encountering is that the fgets() statement is only returning 254 bytes. When I examine the file in a file editor I can see that they are 1025 bytes in length!!
If this is a DOS limitation, how can I overcome it and if not, what am I doing incorrectly??
Thanks
Sandy
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement