🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: be.comp.programming
2 messages
2 total messages Started by Red Head Tue, 24 Jun 2003 16:01
txt aanmaken bewerken en openen
#4944
Author: Red Head
Date: Tue, 24 Jun 2003 16:01
4 lines
1076 bytes
Hoe kan ik in VISUAL BASIC

een text bestand (txt of dat) aanmaken
het openen, aanpassen en opslaan ?
Re: txt aanmaken bewerken en openen
#4890
Author: Proxie
Date: Sun, 29 Jun 2003 10:19
38 lines
2153 bytes
gd wrote:

> On Tue, 24 Jun 2003 18:01:04 +0200, "Red Head" <re_dhead@hotmail.com>
> wrote:
> 
> 
>>Hoe kan ik in VISUAL BASIC
>>
>>een text bestand (txt of dat) aanmaken
>>het openen, aanpassen en opslaan ?
>>
> 
> Een handige dll is : scrrun.dll
> In references : Microsoft scripting runtime aanzetten.
> In de helpfiles eventjes zoeken naar : FileSystemObject
> Dat zou je een heel eind op weg moeten helpen.
> 
sorry zelle, maar voor een gewoon tekstbestand, 
nog ewa meer extra dll nodig enzo, nog ewa trager


gewoon

OPEN "uwtekstbestand.txt" for input as 1


LINE INPUT #1, tmp$
tmp$ = INPUT$(1,10) ' 10 is de lengte van de te 
lezen karakters
INPUT #1, tmp1$, tmp2$ ,...
CLOSE 1

OPEN "uwtekstbestand.txt" for output as 1

PRINT #1, tmp$
WRITE #1, tmp1$, tmp2$, ...

CLOSE 1
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads