Code: Select all
Global.i *buf
ReadFile (0, "C:\txt.txt")
*buf = AllocateMemory (Lof (0))
ReadData (0, *buf, Lof(0))
CloseFile (0)What should I change to get this working in later versions?
Code: Select all
Global.i *buf
ReadFile (0, "C:\txt.txt")
*buf = AllocateMemory (Lof (0))
ReadData (0, *buf, Lof(0))
CloseFile (0)Code: Select all
Global *buf
ReadFile (0, "C:\txt.txt")
*buf = AllocateMemory (Lof (0))
ReadData (0, *buf, Lof(0))
CloseFile (0)Thanks.jacdelad wrote: Mon May 06, 2024 11:08 pm
Simply remove the ".i" since pointers already automatically have the correct variable type.