Questions tagged [file-location]

94 questions
3
votes
2 answers

File Structure / Architecture for AJAX Site?

I'm building a site using ajax and am trying to decide where to put the files that supply the data for the ajax requests. For example, I am going to have a .js file that can be included in a page that will create country/state select boxes. I will…
Eli
  • 97,462
  • 20
  • 76
  • 81
2
votes
1 answer

Finding the Redis config file in macOS

I have installed Redis on my Mac and now I am trying to access Redis config file redis.conf. Where is it located in macOS? I have tried looking at various resources, but could not find any helpful information.
2
votes
3 answers

deleting and creating new/overwriting file with same name c# .NET

I'm trying to save pictures in a folder and every hour I want to save new pictures with the same name as the old ones. I've tried deleting the old pics, and when debugging, they get deleted but when I try to create new versions with the same name,…
ChS
  • 23
  • 5
2
votes
1 answer

Cycling through different file location options

I'm essentially trying to create a function which tests the first location I give, in the form: myComputer.referenceLookup("/address/x/text") and return the string in that location if it is not NULL or "None" or "" (empty). If not, I want it to…
Gamora
  • 337
  • 2
  • 18
2
votes
3 answers

Accessing resource file in test directory in Symfony

Currently I have directory structure like: src -App --MyBundle ---Service ----DefaultService tests -AppMyBundle --files ---data.csv --Service ---DefaultServiceTest I'm writting test for a file reader and I added data.csv file for demo file for a…
Einius
  • 1,352
  • 2
  • 20
  • 45
2
votes
1 answer

reading and writing txt file publish problems c#

I have been using external txt files to save the score and the player name (I only save one score and one name in two different files) When there is a new highscore it saves over the old one. I had it all working perfectly until I published the…
2
votes
0 answers

OS-independent location to store program files

I'm looking for a platform-independent way of getting a location where my Java program can save files. This location should be user-dependent. What I want is: %userprofile%\AppData\Local\MyAppName\ on Windows, ~/.local/share/MyAppName/ or something…
s3lph
  • 4,575
  • 4
  • 21
  • 38
2
votes
1 answer

How to set the location of a file created by a macro

I am converting an excel file to a text file by a macro and I want the text file's location to be the same folder as the excel worksheet's location. My code is: Dim strPath As String strPath = "MyFileName.dat" Dim fnum As Integer fnum =…
Dov Miller
  • 1,958
  • 5
  • 34
  • 46
2
votes
1 answer

Where is the daemon folder in Debian

I have just installed a daemon with: apt-get install daemon and the script I am using requires the directory of daemon's installation. Where is this, or how do I find it?
2
votes
4 answers

How to format system path to a file in java?

I want to read a file say c.txt in java in windows. So can anybody suggest me that how can I format a system path to a file say D:\a\b\c.txt to D:/a/b/c.txt in java? I know it will work like this D:\\a\\b\\c.txt but I want to use this D:/a/b/c.txt.…
divine
  • 33
  • 1
  • 2
  • 8
1
vote
4 answers

How to use Yii controller located in folder rather than default `protected/controller`?

In Yii, when access to /index.php?r=/, the framework will start to run code in protected/controller/Controller.php I want to that code to be located in another folder, says protected/anotherFolder,…
Nam G VU
  • 33,193
  • 69
  • 233
  • 372
1
vote
2 answers

Python Module not found ONLY when .py file is on desktop

Only for a .py file that is saved on my Desktop, importing some modules (like pandas) fail due to Module not found from an import that happens within the module. This behaviour doesn't happen when the file is saved to a different location. Working…
1
vote
1 answer

Linux Get physical location from file and write contents

I want to get the physical location of linux file, /root/f.txt and write(overwrite) some contents of file File is /root/f.txt lsblk command output: # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT fd0 2:0 1 4K 0…
nilesh.b
  • 486
  • 3
  • 9
1
vote
0 answers

java.lang.IllegalArgumentException: input == null! finding sprite sheet

I was trying to locate a sprite-sheet using this code. I tried for like 3 days but i can't really find the problem. ¿Can anyone tell me where is the error? public class HojaSprites { public final int[] pixeles; private final int alto; …
1
vote
1 answer

How to pass a variable as a string to locate a file to be read by d3

I want my code to look at the date, assign it as a variable, and pass the variables value as the name for the appropriate file location I'm relatively new. My posted code is my current syntax attempt. I realize that my function does not have enough…
HAZRD
  • 63
  • 5