Computing.Net > Forums > Disk Operating System > batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch file

Reply to Message Icon

Name: frank
Date: December 8, 1999 at 09:27:13 Pacific
Comment:

HI and thank you for answering me.

How do I pass a parameter/variable to a text
file. My initial program asks for input ie a name. I store that as a variable and then need to pass(insert it in a line of a file)
it to a file.



Sponsored Link
Ads by Google

Response Number 1
Name: nanoguru
Date: December 8, 1999 at 10:22:51 Pacific
Reply:

In qbasic you can open the file in binary mode and place your input string anywhere in the file. You can insert the string in the file or add to the end of the file, or replace a line in the file, etc.

The binary mode is the most versatile of all 3 main modes, but the least described in the literature.

The binary mode handles all ASCII characters 0-255. Other modes will treat the carraige return, line feed and eof of file characters differently.


0
Reply to Message Icon

Related Posts

See More


I can't get a prompt, hel... batch file



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: batch file

Help!! Batch File www.computing.net/answers/dos/help-batch-file/13525.html

Batch files - - Mapping network drive www.computing.net/answers/dos/batch-files-mapping-network-drive/3809.html

Pause batch file www.computing.net/answers/dos/pause-batch-file/2810.html