Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / writting data to files

Author
Message
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 3rd Oct 2005 08:47
using dbpro.

i fi wanted to alow the user to draw a line on the screen using the line commnds and then allow them to save it to a file. including the direction of the line lengthe and color how would i do that?
please help very important.

A child's dream never dies.
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 3rd Oct 2005 10:48
ok never mind the post above. New question.
i am trying to write the output of a directory to a file using the write dirblock command but it doesn white anything to the file.

set dir "c:\"
open to write 1,"C:\somthing.txt"
write dirblock 1,"C:\somthing.txt"

please help?

A child's dream never dies.
Me!
19
Years of Service
User Offline
Joined: 26th Jul 2005
Location:
Posted: 3rd Oct 2005 12:28 Edited at: 3rd Oct 2005 12:29
write dirblock will make a compressed chunk of data out of a directory, are you trying to write a file? or compress a folder?
directorys don`t have output so I think you have your terms muddled.

this will create a file called input_history.txt and save everything you type into it, you can then open it in notepad to read or write another DB program to read it back.

open to write 1,"input_history.txt"
print "enter text and press return, enter the word end in lower case and return to exit"
repeat
input a$
write string 1,a$
until a$="end"
close file 1
print "file closed"
wait key

if thats not what you want then ask again, I am not sure what you are trying to do (you will find the text file inside the DB temp folder).

why do they say Aliens are gonna be friendly?, surely the agressive ones wipe out the peaceloving ones, so all you have left out there are crazed flesh eating interstellar monsters.
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 3rd Oct 2005 15:39
ok put simple i want to build a file browser for a program so you can look through yur pc kinda like explorer. I need a way to list directors though beside the dir command cause it just siplays it to th screen as a bitmap. I ned to be able to save and read the datat somehow. i realise that this is alot of work but im defintely up for the challenge just need to know how to get a list of dirs that can be written to a file.

A child's dream never dies.
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 3rd Oct 2005 16:20
Perform Checklist For Files would be where to start...

If you give up, there's a fileselector function already available.

TDK_Man

Login to post a reply

Server time is: 2024-11-13 21:10:52
Your offset time is: 2024-11-13 21:10:52