Hi guys. I got a question want to ask you guys. Below is my code.
string = uint8(retrieveblock); export = sprintf('%d',string ); export = bin2dec(export); char_export = char(export); display(char_export); fid = fopen('retrievedText.txt', 'w'); fwrite(fid, char_export); fclose(fid);
This is within a for loop. my question is why I will just write the last character into the text file. Thanks and appreciate your opinion.
Best Answer