I use FPS [ this one: FPS – About ] for pascal. I write this code, but it doesn't put number into the file, what's the problem?
Code:program lalala;
var prad : text;
begin
assign(prad, 'C:\Users\Tomas\Desktop\numbers.txt'); rewrite(prad);
write(prad, 1)
end.
You haven't closed prad. Also, it's likely that you are writing the binary value 1, so you may have to check it using a hex editor.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks