Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    [C]apertura di un file

    Ciao a tutti,

    Ho un problema..come faccio ad aprire un file di testo in modalità LETTURA\SCRITTURA senza doverlo aprire,chiudere e riaprire, insomma aprirlo solo una sola volta?

  2. #2
    Utente di HTML.it L'avatar di oregon
    Registrato dal
    Jul 2005
    residenza
    Roma
    Messaggi
    36,480
    Dall'help della fopen ...

    "r+"
    Opens for both reading and writing. (The file must exist.)

    "w+"
    Opens an empty file for both reading and writing. If the given file exists, its contents are destroyed.

    "a+"
    Opens for reading and appending; the appending operation includes the removal of the EOF marker before new data is written to the file and the EOF marker is restored after writing is complete; creates the file first if it doesn't exist.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.