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 / load object (get file name from a .txt)

Author
Message
Slayer
21
Years of Service
User Offline
Joined: 15th Nov 2003
Location: CA
Posted: 28th Feb 2004 01:45
I wont to load a object and get the file name from a .txt file

something like this, but it won't work

open to read 1,""
read string 1,filename$
close file 1

load object filename$,1

Thanks

I dont know how to spell
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 28th Feb 2004 01:49
it should work:

example.txt:
ball.3ds

code:
open to read 1, "example.txt"
read string 1, filename$
close file 1

load object filename$,1


Quote: "
Amd 2500+ | 1024mb pc2700 | A7N8X-X | Geforce4 ti 4200 128mb
"
Slayer
21
Years of Service
User Offline
Joined: 15th Nov 2003
Location: CA
Posted: 28th Feb 2004 02:10
yah it dose.

I found out what was wrong. I wrote in the .txt wrong.
I read a float ensted of a string.

thanks anyways

I dont know how to spell

Login to post a reply

Server time is: 2024-11-26 05:25:21
Your offset time is: 2024-11-26 05:25:21