Saved Bookmarks
| 1. |
Solve : gwbasic writing to a file in a different directory.? |
|
Answer» i am re using one of my old gwbasic files but it save/writes to the wrong directory/folder i am re using one of my old gwbasic files but it save/writes to the wrong directory/folder The line above is a file your BASIC program is reading from, not saving to. Right click and open the properties of your shortcut. Look for a box with the name "Start in:" Type the path you want your file saved to in that box. Save and test that. Don't make any typing errors. That may or may not work - it depends on the script and aspects of your computer.i cant quote the actual line e.g. opening or writing as i am on a windows 10 computer at present away from home and cant replicate the line. the file is on this computer but windows says cant read due to this being 64 bit. will try your solution when i get home. thanksin further explanation. My gwbasic comes up on a shortcut. i then run the gwbasic file it then saves to a txt file. but i want the txt file to save in a different directory. assume. fred to be the current directory i want it to save to c:\harry how do i tell it in the open file line. Quote assume. fred to be the current directory i want it to save to c:\harry how do i tell it in the open file line. Enter the full path. Code: [SELECT]OPEN "C:\harry\file.txt" FOR OUTPUT AS #1 |
|