🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Vi prego aiutatemi!!

#3744
From: Giovanni
Date: Tue, 23 Apr 2002 12:20
31 lines
1957 bytes
Ciao a tutti e grazie in anticipo.
Volevo sapere se � possibile aprire INTERAMENTE un file, cio�:
Io voglio poter aprire vari tipi di file (Jpg, Word....) in modalit�
testuale, ovvero vorrei visualizzare il contenuto del file in una text box.
Apparentemente non ci sono problemi, io uso questo spezzone di programma
(correggetemi se ne conoscete uno migliore):

Private Sub Form_Load()
    F = FreeFile
    Open "C:\Immagine.Jpg" For Input As F
        Do While Not EOF(F)
            Text1.Text = Text1.Text & Input(F,#F)
        Loop
    Close F
End Sub

Fino qui tutto Ok. Se dopo per� risalvo l'immagine senza aver toccato il
testo con il seguente spezzone lui non me la vede pi� come un' immagine Jpg:


Private Sub Salca_Clik()
    F = FreeFile
    Open "C:\ImmagineNuova.Jpg" For Output As F
        Print #F, Text1.Text
    Close F
End Sub

Come posso fare quindi a far si che lui salvi queso file in modo identico al
precedente?
Grazie
Gio Br1
Technical Details
Message-ID: <mkcx8.14997$8D3.422267@news1.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.tele.dk!small.news.tele.dk!212.177.105.133!news.mailgate.org!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,5d9bf6d4d6b3988f,start
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2002-04-23 05:44:07 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.tele.dk!small.news.tele.dk!212.177.105.133!news.mailgate.org!news-out.tin.it!news-in.tin.it!news1.tin.it.POSTED!not-for-mail
From: "Giovanni" <giovabr1@hotmail.com>
Newsgroups: free.it.visual-basic
Subject: Vi prego aiutatemi!!
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <mkcx8.14997$8D3.422267@news1.tin.it>
Date: Tue, 23 Apr 2002 12:20:34 GMT
NNTP-Posting-Host: 62.211.32.248
X-Complaints-To: newsmaster@tin.it
X-Trace: news1.tin.it 1019564434 62.211.32.248 (Tue, 23 Apr 2002 14:20:34 MET DST)
NNTP-Posting-Date: Tue, 23 Apr 2002 14:20:34 MET DST
Organization: TIN