marshall: need help - php fopen

Beitrag lesen

hi,

i've got a file called example.txt

with the command fopen i can open example.txt (read or write).

before i write a new line in example.txt, i want to delete the entire contents first.

how can i delete the contents?

the parameter w+ dosn't help, it only place the file pointer at the beginning of the file.

best whishes
marshall