In the current version of Diamond, the fgetpos, fsetpos, ftell and fseek functions do not work on text files (unless you are locating the start or end of the file, or moving to a position previously determined with fgetpos). This is because the operating system represents newline in a file by two characters (carriage return and line feed) while C interprets this pair as a single '\n' character.
|