Re: finding file in program with created filename

new topic     » goto parent     » topic index » view thread      » older message » newer message

sixs wrote:

>
>
>I want to open a file using a filename that I create. When I run this
>statement iget a value of -1 .
> 
>If I run the statement
>            Handler =
>open("C:\\Downloads\\abgte2\\DATA\\SCR001.txt","r")
>I get the file opened.
> 
>If I run the statement
> 
>            Handler =
>open("C:\\Downloads\\abgte2\\DATA\\filename"&".txt","r")
>I get the file not found, -1.
> 
>  
Well, it should look like this:

open("C:\\Downloads\\abgte2\\DATA\\"&filename&".txt","r")

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu