🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #1793

Re: file

#1793
From: Cerberus1981
Date: Wed, 21 Jan 2004 21:13
43 lines
2731 bytes
dipende come vuoi aprirlo.
detto cos� non sei stato molto chiaro.
se vuoi solamente inserire dei dati per poi riprenderli puoi fare:
******************************************************
Private sub InserisciDati(optionale PathFile as string="C:\A.Txt",optional
Inserisci as string="Ciao")
open pathfile for output as #1'apre il file per l'inserimento di una sola
variabile
'puoi utilizzare Append invece di output se le variabili sono pi� di una.'
write#1,inserisci 'inserisce'
close#1'chiude il file'
end sub
private function Riprendi dati(optionale PathFile as string="C:\A.Txt",)
open pathfile for input as #1
input #1,riprendidati 'prende il primo dato'
close#1'chiude il tutto'
end function
******************************************************
puoi aprire un file per l'inserimento di variabili (dati) tramite:
OUTPUT,APPEND,BINARY,RANDOM.(controlla MSDN)
puoi aprire un file per il prelevamento di testo tramite:
INPUT,BYNARY,RANDOM(controlla MSDN).

ma se vuoi creare un file di testo per aprirlo con NoteBook e visualizzarlo
come tale, ti consiglio il richteextbox (componente Microsoft).
sul Service Pack4.

Fammi sapere di pi�.

--
***************************************************************

La Classe non � Acqua.
infatti � il modello in base al quale vengono create le istanze di un
oggetto in fase di esecuzione. Definisce le propriet� dell'oggetto e i
metodi utilizzati per gestire le funzioni dell'oggetto stesso.

***************************************************************
"Alex" <analsi@tiscali.it> ha scritto nel messaggio
news:dbyPb.161693$_P.5748251@news4.tin.it...
> Ciao, sapete come creare-aprire-modificare un file di testo?
> Grazie mille
>
Technical Details
Message-ID: <3YBPb.126460$VW.5089796@news3.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail
References: <dbyPb.161693$_P.5748251@news4.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,869e30476d274498
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2004-01-21 13:13:35 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail
From: "Cerberus1981" <cerberus1981@tin.it>
Newsgroups: free.it.visual-basic
References: <dbyPb.161693$_P.5748251@news4.tin.it>
Subject: Re: file
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <3YBPb.126460$VW.5089796@news3.tin.it>
Date: Wed, 21 Jan 2004 21:13:35 GMT
NNTP-Posting-Host: 80.117.223.158
X-Complaints-To: newsmaster@tin.it
X-Trace: news3.tin.it 1074719615 80.117.223.158 (Wed, 21 Jan 2004 22:13:35 MET)
NNTP-Posting-Date: Wed, 21 Jan 2004 22:13:35 MET
Organization: TIN