Follow us on Twitter!
Imagination is more valuable than knowledge - Albert Einstein
Saturday, April 19, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 27
Guests Online: 26
Members Online: 1

Registered Members: 82843
Newest Member: hx47
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

QBASIC .dat files help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-04-09 23:25
For school we need to make a program that you input a name and it makes a .DAT file of the name you imputed. I have no idea what the open statement for this would be can someone please help.

Thanks,
Muplah
Author

RE: QBASIC .dat files help

clone4
Member



Posts: 586
Location: He is back and he's bad!
Joined: 25.11.07
Rank:
Mad User
Posted on 24-04-09 23:37
muplah wrote:
For school we need to make a program that you input a name and it makes a .DAT file of the name you imputed. I have no idea what the open statement for this would be can someone please help.

Thanks,
Muplah


wow I didn't know somebody was still writing qbasic, that's like win 95 languageGrin anyway maybe this will throw you in right direction:

INPUT Name$

OPEN "MyFile.dat" FOR OUTPUT AS #1

PRINT #1, Name$

CLOSE #1


[img][/img]img164.imageshack.us/img164/5713/perlvl0.jpg

clone4.freehostia.com/ubuntu_3.png
spyware - "They see me trollin'..."
<yaragn> ever seen that movie? The Matrix?
<yaragn> with those green lines of flying text?
<yaragn> *THAT'S* Perl

clone_4@hotmail.com
Author

RE: QBASIC .dat files help

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 24-04-09 23:39
http://www.colchsfc.ac.uk/computing/manuals/qbasic/QB09.htm

Also tell your teacher that a Dutch guy named "Spyware" told you that QBasic isn't the right way to get started with programming. Tell him you want to learn something useful, like Python. It's a great introduction language and you can actually apply it in real life. QBasic died many eons ago, and should be left alone.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: QBASIC .dat files help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-04-09 23:40
Thanks Clone, but that will input the name in myfile.dat, our teacher is making us have something where it makes the .dat file as the name so it makes like paul.dat. Its weird and I am not sure if it is possible. And yeah no one uses qbasic(besides my teacher).


Spyware it seems like your link also is similar to Clone's examples it writing to studant.dat not depending on what you input. Which is what I need. And spyware I do not know python, but I agree qbasic should not be taught.

Edited by on 24-04-09 23:43
Author

RE: QBASIC .dat files help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 24-04-09 23:43
muplah wrote:
Thanks Clone, but that will input the name in myfile.dat, our teacher is making us have something where it makes the .dat file as the name so it makes like paul.dat. Its weird and I am not sure if it is possible. And yeah no one uses qbasic(besides my teacher).


You will find quite often teachers are lazy and reuse projects. I can almost assure you its possible, and that he knows the answer to it.


Author

RE: QBASIC .dat files help

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 24-04-09 23:45
OPEN sname$+".dat" FOR INPUT AS #1

Something like this. You have to combine a variable (the name part) and a string (.dat).



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: QBASIC .dat files help

clone4
Member



Posts: 586
Location: He is back and he's bad!
Joined: 25.11.07
Rank:
Mad User
Posted on 24-04-09 23:46
the code btw was just like from the first google link Wink I don't know qbasic, because well who doesSmile and I'm little too lazy to find out how you do that, but just put the input into a variable, and then find out how to create a new file. Usually it is just 'opening' new file for writing. It is fairly easy task, google should answer most of your queries from this point Wink

or look aboveSmile


[img][/img]img164.imageshack.us/img164/5713/perlvl0.jpg

clone4.freehostia.com/ubuntu_3.png
spyware - "They see me trollin'..."
<yaragn> ever seen that movie? The Matrix?
<yaragn> with those green lines of flying text?
<yaragn> *THAT'S* Perl



Edited by clone4 on 24-04-09 23:48
clone_4@hotmail.com
Author

RE: QBASIC .dat files help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-04-09 00:02
Thanks both of you, I think your onto something though spy. But it is giving me the error bad file name
Author

RE: QBASIC .dat files help

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 25-04-09 00:27
muplah wrote:
Thanks both of you, I think your onto something though spy. But it is giving me the error bad file name


I don't know the exact syntax of QBasic. In most languages though, it's variable+"string". Just ask your teacher to explain you the syntax.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: QBASIC .dat files help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 25-04-09 00:29
I got it working, thanks so much spyware! If you need anything dont hesitate to ask, I might most likely wont be able to help but umm its thought that counts Grin
Author

RE: QBASIC .dat files help

AldarHawk
Member



Posts: 1690
Location: Canada
Joined: 26.01.06
Rank:
Hacker Level 1
Posted on 25-04-09 02:17
Spyware actually helping? Who are you and what have you done with my pal spyware?


Just ask Yahoo!Taboo! http://www.erikwestlake.com
Author

RE: QBASIC .dat files help

AldarHawk
Member



Posts: 1690
Location: Canada
Joined: 26.01.06
Rank:
Hacker Level 1
Posted on 25-04-09 02:25
let me take a line straight from you bloody profile

About User
I own approximately 6.8% of shoutbox posts.


So please STFU about spamming. Please crawl back under your god damn rock and eat the turd that is coming out of your ass because you are so full of shit.

Learn what you are actually writing about before you do so you do not look like a total idiot like here.

So please learn to lay off and get your shit together so that you can ensure that i does not back fire on you. And I know you will come back with some small "belittling" remark that you think you will get away with. However, you do not know that no matter what you are typing on HBH, it means nothing in life. Learn...do not burn your bridges that you cannot see. They could hinder your escape from the real world in the future. So please....STFU spammer.


Just ask Yahoo!Taboo! http://www.erikwestlake.com
Author

RE: QBASIC .dat files help

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 25-04-09 02:34
AldarHawk wrote:Text


Aldarhawk, you can't flame for shit. Really, you shouldn't even attempt to flame. I'm sorry man, it's just not your thing :/

Also, it might have something to do with your current BAC level.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: QBASIC .dat files help

AldarHawk
Member



Posts: 1690
Location: Canada
Joined: 26.01.06
Rank:
Hacker Level 1
Posted on 25-04-09 02:38
spyware wrote:
AldarHawk wrote:Text


Aldarhawk, you can't flame for shit. Really, you shouldn't even attempt to flame. I'm sorry man, it's just not your thing :/

Also, it might have something to do with your current BAC level.


nope. just got tired of his shit...nothing more. But thank you for your normal brutal honesty once again...now you are back Grin


Just ask Yahoo!Taboo! http://www.erikwestlake.com