include text file

Hello,
I have a small problem with GAMS - I want to include .txt file, but the value from this text file should be read as a scalar not like a table, as I did before. Is it possible? If yes, how to do it? Because this comment doesn´t work:
scalar B00 /$Include “C:\Users\Jagna\Desktop\GAMS\matrixB00.txt”/;

regards


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Hi Jagna



The $ has to be in column 1. And the content of the file is a set of lines. But try this:



scalar B00 /

$Include “C:\Users\Jagna\Desktop\GAMS\matrixB00.txt”

/;



Good luck



Arne


Arne Stolbjerg Drud

ARKI Consulting & Development A/S

Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark

Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: adrud@arki.dk



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Jagna Smolinska
Sent: Monday, July 28, 2014 4:55 PM
To: gamsworld@googlegroups.com
Subject: include text file



Hello,

I have a small problem with GAMS - I want to include .txt file, but the value from this text file should be read as a scalar not like a table, as I did before. Is it possible? If yes, how to do it? Because this comment doesn´t work:

scalar B00 /$Include “C:\Users\Jagna\Desktop\GAMS\matrixB00.txt”/;



regards


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Reply-to: gamsworld@googlegroups.com

Thanks! It works:)

W dniu wtorek, 29 lipca 2014 08:17:05 UTC+1 użytkownik Arne Stolbjerg Drud napisał:

Hi Jagna



The $ has to be in column 1. And the content of the file is a set of lines. But try this:



scalar B00 /

$Include “C:\Users\Jagna\Desktop\GAMS\matrixB00.txt”

/;



Good luck



Arne


Arne Stolbjerg Drud

ARKI Consulting & Development A/S

Bagsvaerdvej 246A, DK-2880 Bagsvaerd, Denmark

Phone: (+45) 44 49 03 23, Fax: (+45) 44 49 03 33, email: ad…@arki.dk



From: gams...@googlegroups.com [mailto:gams...@googlegroups.com] On Behalf Of Jagna Smolinska
Sent: Monday, July 28, 2014 4:55 PM
To: gams...@googlegroups.com
Subject: include text file



Hello,

I have a small problem with GAMS - I want to include .txt file, but the value from this text file should be read as a scalar not like a table, as I did before. Is it possible? If yes, how to do it? Because this comment doesn´t work:

scalar B00 /$Include “C:\Users\Jagna\Desktop\GAMS\matrixB00.txt”/;



regards


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.