Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Erase tmp.txt
Message
De
15/10/2014 23:58:03
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01609499
Message ID:
01609500
Vues:
75
This message has been marked as the solution to the initial question of the thread.
>What is clearest way to erase a text file (TMP.txt)
>I have been using this - i'm sure there is a cleaner way to do it.
>
>set alte to TMP.txt
>close alte
>
>
>tnx k

Hm, I'm not realy shure what you are doing.

Your code will not erase anything (from disk)

To delete a file use
DELETE FILE TMP.txt
But this will not delete the file if it's open somewhere etc without notice.

In so far it's perfect to CLOSE ALTERNATE a file that is opened with SET ALTERNATE before DELETE FILE.

To just erase some file you do not need do anything with ALTERNATE stuff.

Hint: The four letters abbrevs are a bit outdated this century. What about create your example in VFP + copy & paste? It will autocomplete and beautify a bit - thats much more readable for the audience. :)

Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform