octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #66399] fseek and ftell functions don't always


From: MikeMcC
Subject: [Octave-bug-tracker] [bug #66399] fseek and ftell functions don't always work correctly on Win11
Date: Mon, 4 Nov 2024 18:32:55 -0500 (EST)

Follow-up Comment #2, bug #66399 (group octave):

OK, here are all the same commands from the first post, except that the
fseek() calls were modified as requested.

>> fileName
fileName = Data_256Seg±1000mVRng4GSampRate_1_1.dat
>> ls -l Data_256Seg±1000mVRng4GSampRate_1_1.dat
-rw-r--r-- 1 mmccully None 2299265024 Aug  8 16:30
'Data_256Seg'$'\302\261''1000mVRng4GSampRate_1_1.dat'
>> fileID = fopen(fileName)
fileID = 3
>> ftell(fileID)
ans = 0
>> [dataSeg, count] = fread(fileID, 320, 'uint8');
>> count
count = 320
>> ftell(fileID)
ans = 320
>> fseek(fileID, 0, "bof")
ans = -1
>> ftell(fileID)
ans = 320
>> fseek(fileID, 0, "eof")
ans = -1
>> ftell(fileID)
ans = 320
>> [dataSeg, count] = fread(fileID, 320, 'uint8');
>> ftell(fileID)
ans = 640
>> fclose(fileID)
ans = 0
>>


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66399>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]