Questions tagged [file-structure]

257 questions
2
votes
3 answers

Reading complex binary file formats

Is there any book or tutorial that can learn me how to read binary files with a complex structure. I did a lot of attempts to make a program that has to read a complex file format and save it in a struct. But it always failed because of heap…
Midas
  • 7,012
  • 5
  • 34
  • 52
2
votes
2 answers

JS Project file placement

I am having a difficult time trying to figure out where to place a certain file in my javascript project. I have a fairly large JSON object that represents ISO language codes: {"code":"nl","name":"Dutch","nativeName":"Nederlands,…
2
votes
2 answers

Import file from lib directory?

I've been reorganizing my project because there was an issue somewhere, but, as programming always goes, the problem is now 10 times worse and everything is broken. My current file tree that I am satisfied with is: Amazons AI - .git - Game_Code …
user8866053
2
votes
1 answer

Hiding the file path of a programming computer from hexdigit

I programmed a C# program for my friend and when he got it, he opened it with hexedit and was able to see the filepath to the debugging folder on my computer saved on the program. I gave him the exe that was compiled in the debugging folder. Is…
Franz Payer
  • 4,069
  • 15
  • 53
  • 77
2
votes
0 answers

Open an existing Word document

Dim myStream As Stream = Nothing Dim openFileDialog1 As New OpenFileDialog() openFileDialog1.InitialDirectory = "C:\Temp" If openFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then Try myStream =…
annee
  • 23
  • 4
2
votes
1 answer

Where can I find the directory of all my posts/articles in WordPress?

I think all the posts should be in wp-content/uploads/... But I couldn't find them. Anyone has ideas of where my posts are located? Thanks!
Liyan Xu
  • 31
  • 1
  • 5
2
votes
1 answer

How do I deploy a JSP file in the Jetty webserver?

I have created a simple JSP file that I want to deploy in Jetty 7.2. Jetty is running and I can see the default web page at http://localhost:8080/. I started Jetty with the java -jar start.jar command. I saved my simple JSP file jsp_test.jsp at…
Jonas
  • 121,568
  • 97
  • 310
  • 388
2
votes
2 answers

Listing all directories recursively within the zipfile without extracting in python

In Python we can get the list of all files within a zipfile without extracting the zip file using the below code. import zipfile zip_ref = zipfile.ZipFile(zipfilepath, 'r') for file in zip_ref.namelist(): print file Similarly is there a…
Evelyn Jeba
  • 4,181
  • 3
  • 12
  • 10
2
votes
2 answers

Pattern for managing multiple reducers inside of a module [Redux]

I am new to Redux and am trying to figure out a scaleable way to setup my projects folder/file structure. Lets say we have a file structure that looks like this: root/modules/Todos/reducers In the root of the project there lives a 'rootReducer.js'…
2
votes
2 answers

How to manage file path when accessing from different directory location?

I have few web pages sitting in different directories and my goal is to have some sort of organized structure so that I can access to js or css files without hardcoding the path. For instance, the directory structure is: root --- js --- some.js …
Meow
  • 18,371
  • 52
  • 136
  • 180
2
votes
0 answers

Meteor dynamic non-collection forms

I have started learning MeteorJS and I have some problems with the structure of the project. I am trying to create a quiz app without saving answers to database, but showing them in a summary page after the completion of the quiz. I have tried to…
Kęstutis
  • 55
  • 5
2
votes
1 answer

AngularJS file structure, directive and controller coupling: should a directive use an external controller?

Let's say I need to add a Tag functionality similar to the one offered by StackExchange to my website: I have an input bar filled with selected tags, when I type something a list of suggestions appear. Pretty standard stuff. I would do the…
fusio
  • 3,595
  • 6
  • 33
  • 47
2
votes
4 answers

CSS File Structure

Is there any best practices or very practical solutions to organizing mass amounts of css files. Firstly, how should you use css within a page, should you have a external style sheet for each individual page, and a include css file for 'css reset'…
Jack Trowbridge
  • 3,175
  • 9
  • 32
  • 56
2
votes
1 answer

Error handling for encoding problems in File.listFiles() in android

I'm fairly new to android and java, my background is c# .net. I have a network share mounted to /mnt/cifs/Audio by using CifsManager. Other apps on the device can display the files in that directory. My problem is that my app goes into a loop when…
Xtr
  • 374
  • 5
  • 12
2
votes
3 answers

C++ headers and cpp files - how the heck do I manage them?

I am getting crazy, cryptic compiler errors when trying to build my solution on VS2010. I'm really having a hard time understanding how these includes work. Game.cpp Game.h Deck.cpp Deck.h Card.h // Game.cpp #include "Game.h" All good. Now I need…
user2011736
  • 141
  • 8