Re: Get file contents into a variable in biterScripting
About MS-DOS By: Chappy (45 replies) Thu, 02/08/2007 - 16:49About MS-DOS By: AllBootDisks Visitor (08/07/2009 - 21:33) How to make a boot disk for another dos OS. By: AllBootDisks Visitor (07/17/2009 - 02:43) Re: About MS-DOS By: dev (06/19/2009 - 10:51) Re: About MS-DOS By: AllBootDisks Visitor (06/10/2009 - 07:10) not about bootdisks, but it is about DOS. By: Stephen (01/21/2009 - 03:30) Re: About MS-DOS By: Patrick Mc (12/25/2008 - 14:21) Re: About MS-DOS By: peter (11/26/2008 - 02:50) Re: About MS-DOS By: Morior (09/15/2008 - 23:55) DOS On CD By: AllBootDisks Visitor (08/21/2008 - 12:30) Re: About MS-DOS By: AllBootDisks Visitor (08/11/2008 - 13:46) Re: About MS-DOS By: AllBootDisks Visitor (07/30/2008 - 02:18) Re: dfgh4tywgw4h By: AllBootDisks Visitor (06/13/2008 - 18:45) Re: About MS-DOS By: AllBootDisks Visitor (04/13/2008 - 01:55) Re: About MS-DOS By: AllBootDisks Visitor (03/28/2008 - 23:40) Re: About MS-DOS By: AllBootDisks Visitor (02/14/2008 - 23:42) Re: About MS-DOS By: AllBootDisks Visitor (01/22/2008 - 23:27) Re: About MS-DOS By: ati (12/28/2007 - 20:10) help! By: dos (12/11/2007 - 21:01) Re: About MS-DOS By: LoLo (11/09/2007 - 23:59) Re: About MS-DOS By: AllBootDisks Visitor (11/07/2007 - 02:52) Re: About MS-DOS By: AllBootDisks Visitor (09/06/2007 - 21:48) Installation of MS-DOS By: Rajesh Patwardhan (08/27/2007 - 06:28)
- Re: About MS-DOS By: AllBootDisks Visitor (01/07/2010 - 22:36)
- Re: About MS-DOS By: AllBootDisks Visitor (10/14/2009 - 15:53)
- LUJBpJeEzSRKXlpDV By: uhiecq (09/06/2010 - 11:26)
- Re: About MS-DOS By: AllBootDisks Visitor (10/13/2009 - 14:52)
- Re: About MS-DOS By: AllBootDisks Visitor (10/09/2009 - 22:53)
- Re: Get file contents into a variable in biterScripting By: Patrick (02/26/2009 - 16:23)
- Re: not about bootdisks, but it is about DOS. By: Ralf "bexxx" Beckers (01/26/2009 - 16:23)
- Re: not about bootdisks, but it is about DOS. By: Ralf "bexxx" Beckers (01/26/2009 - 16:26)
- Re: About MS-DOS By: Svenne (01/22/2010 - 18:07)
- Re: About MS-DOS By: AllBootDisks Visitor (06/13/2008 - 18:44)
- Re: About MS-DOS By: AllBootDisks Visitor (01/25/2010 - 20:38)
- flwQIoVftutOXplzpc By: bscoexxsml (09/06/2010 - 06:04)
- flwQIoVftutOXplzpc By: bscoexxsml (09/06/2010 - 06:04)
- Re: About MS-DOS By: Dan (01/30/2008 - 17:06)
- Re: About MS-DOS By: AllBootDisks Visitor (11/26/2007 - 03:44)
- Re: About MS-DOS By: AllBootDisks Visitor (01/25/2010 - 20:34)
- Re: About MS-DOS By: Ray (12/17/2008 - 01:42)
- Re: Installation of MS-DOS By: AllBootDisks Visitor (08/19/2009 - 06:33)
- Re: Installation of MS-DOS By: AllBootDisks Visitor (12/31/2007 - 06:55)
- Re: Installation of MS-DOS By: AllBootDisks Visitor (09/30/2007 - 10:23)
- Re: Installation of MS-DOS By: David (04/04/2010 - 01:49)
- Re: Installation of MS-DOS By: AllBootDisks Visitor (07/30/2010 - 22:41)
- Re: Installation of MS-DOS By: AllBootDisks Visitor (03/28/2009 - 10:52)
- Re: Installation of MS-DOS By: David (04/04/2010 - 01:49)






Re: Get file contents into a variable in biterScripting
Stephen:
The following biterscripting commands will get the contents of a text file (as you asked) into a variable.
var str content
cat "file_name" > $content
There is a good example at http://www.biterscripting.com/SS_ExtractLines.html . That sample script reads a file into a variable (just as above), then extracts lines from $from to $to. $from and $to are passed as input arguments to the script.
Patrick