I have this code,
Code: Select all
Define.q
size=FileSize("teste")
ReadFile(0,"teste")
CreateFile(1,"teste2")
*a=AllocateMemory(size)
ReadData(0,*a,size)
WriteData(1,*a,size)
FlushFileBuffers(1)
CloseFile(1)
CloseFile(0)
Debug FileSize("teste")
Debug FileSize("teste2")
Ofc this is just a test code, but I intend to make something like a file splitter, is there another way to read/write data without using a buffer, or any other way to do that?
Thanks in advance!