🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: file

#1799
From: Alex
Date: Thu, 22 Jan 2004 13:07
51 lines
3036 bytes
Grazie queste conoscenze di base bastano e avanzano molro gentili.


Cerberus1981 ha scritto:
> 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: <5WPPb.128772$VW.5188919@news3.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.mailgate.org!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail
References: <dbyPb.161693$_P.5748251@news4.tin.it> <3YBPb.126460$VW.5089796@news3.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-22 05:07:13 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.mailgate.org!nntp.infostrada.it!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail
From: Alex <analsi@tiscali.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.4) Gecko/20030624
X-Accept-Language: it, en, en-us
MIME-Version: 1.0
Newsgroups: free.it.visual-basic
Subject: Re: file
References: <dbyPb.161693$_P.5748251@news4.tin.it> <3YBPb.126460$VW.5089796@news3.tin.it>
In-Reply-To: <3YBPb.126460$VW.5089796@news3.tin.it>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 52
Message-ID: <5WPPb.128772$VW.5188919@news3.tin.it>
Date: Thu, 22 Jan 2004 13:07:13 GMT
NNTP-Posting-Host: 82.49.176.57
X-Complaints-To: newsmaster@tin.it
X-Trace: news3.tin.it 1074776833 82.49.176.57 (Thu, 22 Jan 2004 14:07:13 MET)
NNTP-Posting-Date: Thu, 22 Jan 2004 14:07:13 MET
Organization: TIN