Skip to main content

Questions tagged [files]

Filter by
Sorted by
Tagged with
0 votes
2 answers
653 views

I’m still a Computer Science student, and recently I’ve had to develop a project using the MVC pattern, but without having learned in depth about how it actually works. And it’s not the first time I’...
MasterTJ123's user avatar
0 votes
2 answers
218 views

I have a project where there is a primary, high-level, opaque struct with many functions that operate on it. Maybe I am simulating a CPU. How might the corresponding source code be organized? One way ...
Ana Nimbus's user avatar
0 votes
2 answers
1k views

I've to store a static pdf with an user guide of my application. I'm using Spring boot and Angular 12, what is the best way to store it? Put the file on resource folder of Spring boot? Put the file ...
Accollativo's user avatar
0 votes
2 answers
1k views

I am designing the API architecture for my client: My client actually exchange huge files (csv) with his Partner with MFT ( SFTP ) **Partner ==> MFT ==> Client ** The requirement is to move to ...
Benhassine Mohamed's user avatar
2 votes
1 answer
669 views

I am debating whether to give my files a public url or a limited private one. I am hosting various files for a mobile/web application. These will include product images and videos. Currently only ...
auerbachb's user avatar
  • 191
-1 votes
2 answers
144 views

I am looking for a name/paradigm/research area etc. that describes the notion of working with data not in the traditional file-based sense, but instead based on semantics. I can best explain what I am ...
thessalchips's user avatar
0 votes
2 answers
278 views

Based on what I have been reading about the Liskov Substitution Principle, I understand that a square and rectangle class cannot be a part of the same inheritance tree. I would like to apply these ...
ericg's user avatar
  • 171
1 vote
0 answers
51 views

I have a question about best-practices in terms of reliability. There is some data residing in RAM of some process and the data needs to be delivered in a bunch of external storage providing the ...
Some Name's user avatar
  • 121
0 votes
1 answer
150 views

Long time ago I learned that text files are not like Random access Files, i. e., adding or updating info at the beginning of a text file involves moving all the rest of the file "forward" (or ...
Mdot's user avatar
  • 1
1 vote
1 answer
249 views

I am writing a class FileFoodReader (in java if that matters) that reads input from a file containing information about foods and their nutritional values. The file has to fulfill some requirements ...
DancingIceCream's user avatar
0 votes
3 answers
398 views

So i want to understand how DBMS implementation works To give an example : MySQL implements each tables with its own pages, which are 16KB so each table is a file, and is a multiple of 16KB, ...
OneAndOnly's user avatar
6 votes
6 answers
721 views

for example, suppose I need to play different sounds according to "grade": file list: fairSound.mp3 goodSound.mp3 excellentSound.mp3 code: showResult(grade){ if(grade==0 || grade==1){ ...
ocomfd's user avatar
  • 5,760
4 votes
4 answers
2k views

In my understanding, even if i want to overwrite a byte in middle of a file, OS and/or disk will read the content of the size of page, modify one byte and then write the contents back. What is the ...
Ashish Negi's user avatar
-1 votes
1 answer
491 views

My program (a command-line utility) will load configuration from a file, using defaults if file not found, and I'd like to do this in a cross-platform manner that people will expect. Is there a de-...
M.M's user avatar
  • 135
3 votes
1 answer
610 views

The codebase consists of 190 Fortran 95+ source files, and directory of binary coefficient files required for the use of the code. The binary directory contains about 4000 files, some of which are ...
Ben's user avatar
  • 179
2 votes
3 answers
608 views

In Robert Sedgewick's Algorithms book there's this exercise: A folder is a list of files and folders. Write a program that takes the name of a folder as a command-line argument and prints out all ...
Mikayil Abdullayev's user avatar
1 vote
2 answers
569 views

I am in the process of migrating the way an app makes persistence of its settings. It wrote and read data from registry; now it is desired it load/save XML files on the C:\AppData\MyApp\Version ...
sergiol's user avatar
  • 157
0 votes
1 answer
504 views

I was wondering if what I have in mind already exists in any known compression programs/algorithms or not. We know that Seed gives us constant sequence of random numbers. so if we be able to find seed ...
M.kazem Akhgary's user avatar
1 vote
0 answers
193 views

Sometimes I just need .h but not .cpp file, eg : interface class or enum class, and when the class list is displayed on file list of IDE (eg:Xcode): Animal.cpp Animal.h Cat.cpp Cat.h Dog.cpp Dog.h ...
ggrr's user avatar
  • 5,893
0 votes
1 answer
1k views

I'm trying to build a simple file transfer program that transfers a file from a server to a client. I gave it a try myself by simply writing the file to an ObjectOutputStream. This didn't work. I did ...
namarino41's user avatar
27 votes
2 answers
7k views

Git by default does not set the file-time accordingly when the files are synced with the origin. It just ignores the file-time of the pushed files. Doesn't it make sense for the file's modification ...
David Refoua's user avatar
  • 1,249
0 votes
0 answers
489 views

What is a good way of setting up a "shared index" of file metadata, when there can be no shared process such as a database server? I'll explain the scenario: A server contains M (say 10000) large ...
Anders Forsgren's user avatar
3 votes
1 answer
5k views

I have a cpp project which source code I want to split into 3 groups and want to define structure for these files by creating folders with nice name. First group are files related to socket ...
sfelber's user avatar
  • 131
26 votes
1 answer
7k views

Given the file path: /some/path/abc.txt The filename is "abc.txt", and extension is "txt". What is the "industry standard", unambiguous name for the "abc" part? For reference, in both java's older ...
Bohemian's user avatar
  • 2,076
-1 votes
1 answer
378 views

I am looking to create a "Composite file" in C++, basically a composite file is a file containing files, (examples: .docx, .jar, etc) these files can usually be renamed as .zip and opened with a .zip ...
Jesse McDonald's user avatar
4 votes
2 answers
2k views

I have 500.000 files with the combined size of 350GB. So an average file has 0.7MB size. Each file has metadata: 1 to 100 keywords and optionally a short description. I need to filter the files and ...
inf3rno's user avatar
  • 1,259
-1 votes
1 answer
1k views

I need to permit users to upload large files to my web-server even if the browser is closed. How can I implement this functionality. I have gone through the feasibility of google drive app but it dose'...
Ebin Manuval's user avatar
0 votes
1 answer
3k views

I have a larger directory structure (dir + sub directories) with files. It contains files of certain types. For one particular type (let's say with appendix .foo) I need to figure out if files have ...
Horst Walter's user avatar
6 votes
1 answer
160 views

Context: I am developing a visual studio plugin that generates layer diagrams. I want the tool to be able to produce an intermediate output, which is the data representation of what is being rendered ...
David's user avatar
  • 163
2 votes
1 answer
887 views

When a non-HTML file such as a PDF, DOCX, EXE, etc is made public to the WWW by an HTTP server, and a client makes a request for said file, www.example.com/download?=test.doc what facilitates the ...
Jan J's user avatar
  • 165
191 votes
15 answers
40k views

If we look at the vintage program Netscape Navigator or an early version of Microsoft Word, those programs were less than 50 MB in size. Now when I install google chrome it is 200 MB and desktop ...
Niklas Rosencrantz's user avatar
0 votes
1 answer
2k views

EDIT: You were right, the problem is not checking if a file with the same name exists but the connection. I made a mistake measuring the time with StopWatch and included a part which used the network ...
JoeFox's user avatar
  • 111
2 votes
3 answers
823 views

I know that (on Linux at least, with native file systems like Ext3) file paths can in theory be quite long, and PATH_MAX is often (but not always) as big as 4096 (see this; and this explains it could ...
Basile Starynkevitch's user avatar
5 votes
2 answers
13k views

I am wondering what the difference in Git would be if I used the mv command versus moving it in Windows explorer. From Perforce I know it's important because the version system keep track of the file ...
Serguei Fedorov's user avatar
0 votes
5 answers
3k views

As far as I read, files are introduced in OS books. Before an OS is installed on a bare computer system, does the computer use files? In particular, executable files have formats in OSes, e.g. ...
Tim's user avatar
  • 5,565
4 votes
2 answers
4k views

I'm working on a project where we produce lots of data in the form of simple .txt files. These usually contain a set of columns that will later be loaded in to Matlab to be analysed. I've implemented ...
sydan's user avatar
  • 373
2 votes
2 answers
14k views

I'm currently writing a python script. It's currently about 400 lines long, and it seems like it's getting a bit long, as when I'm trying to scroll through it with eclipse it takes a bit to get from ...
Mitch's user avatar
  • 153
-1 votes
2 answers
8k views

I am working on an application that reads a log file, looks for a specific string, sends alert emails and saves data from the file into a database. The reading functionality is working well, but I am ...
user1998581's user avatar
1 vote
3 answers
728 views

When binary files (i.e. executables) are saved they usually have a format (e.g. ELF or .out) where we have a header containing pointers to where data or code is stored inside the file. But why don't ...
sarthak's user avatar
  • 199
14 votes
7 answers
6k views

This occurs as a programming language independent problem to me. I have a file with the content aaabddd When I want to insert C behind b then my code needs to rewrite ddd to get aaabCddd Why can I ...
User's user avatar
  • 815
17 votes
2 answers
10k views

I see that some software have the version number included as a part of their file name, while others do not. I am more used to the latter type, and I think that is more popular, but I see the former ...
sawa's user avatar
  • 464
0 votes
2 answers
1k views

I have a very small and basic web site on a web server. Usually I'm doing the changes on a localhost where the development version is, and after that I upload it to the server with FileZilla. That's ...
Bor's user avatar
  • 129
1 vote
1 answer
101 views

I'm doing a project that uses svg-edit(JS drawing tool) and the page grows big. By now there are about 20 JS file in a page - plug-ins and so on. One of the editor's files breaks in some kind of '...
Bor's user avatar
  • 129
11 votes
3 answers
2k views

I have a number of (large) test files that need to be maintained. This means access to their history is a requirement. Benefits Any new developers get the entire test suite with just a git pull. The ...
sdasdadas's user avatar
  • 511
5 votes
5 answers
679 views

I've used a software suite that is installed in offices and on remote vessels. The installations communicate back and forth, and they do that by using a simple proprietary file format that looks ...
Danny Beckett's user avatar
4 votes
5 answers
1k views

I'm trying to decide on what format I should save data in, and hopefully this question will help me come to a decision. The program I'm writing uses 'databases' in which word=meaning (not a dictionary,...
Andy's user avatar
  • 372
1 vote
3 answers
2k views

There are a lot of variants of the CSV "standard" (or lack thereof). I've never personally see any that use an escape character (like \) instead of surrounding each field with double quotes. Instead ...
poke's user avatar
  • 560
7 votes
5 answers
13k views

Given a file > 5Gb, simply with lines like Apache's access.log. I need to get number of lines. Any constructions like file(filename).read().counter('\n') would read all of the file and it would ...
rezeptor's user avatar
1 vote
2 answers
6k views

When creating websites, is it better to have a lot of images in one folder, or have them separated? It's something that has always been in my mind but I never researched enough about it, and googling ...
aleation's user avatar
  • 129
1 vote
1 answer
1k views

I would like to monitor the filesystem in python, so that my application gets warned of the new file addition, file removal, or file change. Once the file is detected, the application starts ...
Stefano Borini's user avatar