返回首页
We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [file]

A block of arbitrary information, or resource for storing information, accessible by the string-based name or path. Files are available to computer programs and are usually based on some kind of persistent storage.

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

Read access violation, error code 0xFFFFFFFFFFFFFFFF

I'm sorry this is a repeat question, but no solutions seem to work for my code. This is for an assignment in school on reading from a file and copying the data to an array. An exception is thrown ...
0
votes
1answer
10 views

Is there a way to save and API stream as .csv without using FileSaver or createObjectURL()

These seem to be the only two existing approaches. the issue with createObjectURL() is that it is deprecated, my current browser, chrome can't even call this method anymore. the issue with ...
0
votes
0answers
5 views

How to design processing pipelines when working with files

Hello i have the following problem: I have a ASP NET Core application that has to be able to receive files and process them.The catch is that this processing is done in multiple stages and the client ...
0
votes
1answer
18 views

How to handle moving of a file while open in python

In the below case, I wanted to read a file and have got the handle. But the file is moved to some other location and new data is being written. In [2]: !echo "1\n2\n3" > /var/tmp/file In [3]: !cat ...
0
votes
1answer
16 views

Read a matrix from a file with text [on hold]

I'm trying to read a matrix from a file, but the file has some text before and after the matrix, is there a way to read it and ignore the text? Thanks
0
votes
0answers
16 views

Bash function to find newest file matching pattern in zip file

i have to take the latest file from zip in bash. OK if they were with different timestamp created :) files are like: file_9283208320382 DATE HOUR-MINUTE-SECCOND AM/PM.csv file_1283208320382 DATE HOUR-...
0
votes
0answers
4 views

How to use file path linitation value/variable of Operating System in c++ program?

e.g. Windows has 260 character limit for File path. I want to use this limitation value in my c++ program, but not Hard Coded value. My Application works on different Operating Systems. So can you ...
-2
votes
0answers
14 views

Removing authentication for a particular file in ubuntu

Whenever I am opening a file for which content is written by a server, I am prompted with authentication. As I had to open many times, would like to remove the authentication. Can someone tell me how ...
-1
votes
1answer
18 views

How do I create a JS file in my react app?

I have a silly library that can only load the required meta data from another JS file. That file looks like this // customStuff.js __customStuff = [ {.. stuff 1}, {.. stuff 2}, {.. etc} ] That ...
-2
votes
1answer
28 views

File with multiple data types, into arrays, then sort one array while keeping the records together

My problem is that I will be giving a file with student information: name, age, and GPA. I then have to turn each data element into a separate array. I then have to sort GPA into descending order, ...
0
votes
0answers
13 views

Upload file operation sometime failed with file 0KB in Size

My colleague encounter a file upload problem which save file is sometimes 0kb after upload. This happens occasionally and difficult to find out the root cause. He deploys his website in a web server ...
0
votes
2answers
41 views

Does File.mkdirs() need WRITE_EXTERNAL_STORAGE permission

Does below code need WRITE_EXTERNAL_STORAGE Permission? I mean does file.mkdirs(); need WRITE_EXTERNAL_STORAGE to write file SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss", ...
0
votes
1answer
24 views

Issue looping on block module for a set of tasks in Ansible

I need to check if deploy.db file exists. If it does not exist, then I need to perform a set of tasks for which I'm using block. Below is how i run the playbook ansible-playbook test.yml -e Layer=...
-1
votes
0answers
17 views

How can I create a custom header for new python files? [on hold]

I just wanted to know this. I am obviously not asking the right thing on Google.
1
vote
0answers
22 views

What is the best way to upload a file with React or JS and Websockets?

I am new to React. And I've done a file upload functionality. It works well for a small file size, but some files are working not good with it. So I want to have some advice about the right way. The ...
0
votes
1answer
47 views

My logo in the header nav won't appear for some reason?

HTML : .logo { width: 150px; height: auto; float: left; margin: 20px; background: url('logo.png'); } <header></header> <body> <div class="row"> &...
0
votes
1answer
13 views

NAudio splitting wav file produces 0 second wav files

I am using NAudio to split an full Album into several audio files. The program runs smooth and theres no exceptions, but in the end, the output audio files are not listenable and they get shown as 0 ...
0
votes
0answers
4 views

Cant get rid of error: SyntaxError: Can't assign to literal

I am trying to write a code that checks for spaces in a file, but whenever I run the program it gives the following error. SyntaxError: Can't assign to literal. I have tried but I don't know how to ...
0
votes
0answers
30 views

Read files from deeply nested sub-directories and rename them with sub-directory full path name in R

I have a directory containing files in very deeply nested directories. They are results from a simulation. Here is the structure of the directories and sub-directories. only one complete branch is ...
1
vote
1answer
8 views

How do I check if there is a duplicate file in a folder, without comparing file names using glob/listdir/etc..?

I have a folder that contains several images, the directory structure looks like this: ./images/ ./images/1.png ./images/2.png ./images/3.png ./images/4.png ./images/{n}.png These images have been ...
-4
votes
2answers
32 views

how to detect file if exist in python [duplicate]

how can i detect if a specifics files exist in directory ? example: i want to detect if (.txt) files exist in directory (dir) i tried with this : import os.path from os import path def main(): ...
-3
votes
1answer
31 views

How do I read from an open file?

I'm trying to write a program that can store the contents of a file into a variable chosen by the user. For example, the user would choose a file located in the current directory and would then choose ...
0
votes
1answer
30 views

How do you enforce which class file a Java application should use?

I am trying to call a constructor for an object called Supplier, but the wrong Supplier.java file is being used. I have separated my application into two "packages" part 1 and part 2. Each with their ...
1
vote
1answer
30 views

Is there a default file upload size limit in django?

I am using django FileField and ImageField in my models but I am wondering is there any default upload size limit for files.I researched about it and I found that we can limit the file upload size to ...
2
votes
0answers
23 views

Formating a table from a csv file

I'm trying to make a table from data from a CSV file using only the CSV module. Could anyone tell me what should I do to display the '|' at the end of every row(just after the last element in the row)?...
0
votes
1answer
31 views

test if a certain type of file exists

I have a script in bash that is supposed to classify all the text files of my working directory and put them in specified directories. It works fine but once used, I get this error message when I try ...
0
votes
1answer
23 views

Delete the block of the text in C

Please help me to delete the block of text from text file using C program: EXAMPLE: CONTENT OF THE FILE: INDEX: 1; NAME: name; SPEC: spec NOTES: notes bla-bla-bla ----- INDEX: 2; NAME: name; SPEC: ...
-3
votes
0answers
25 views

How can I edit a file with re.sub()? [duplicate]

I have a settings file which I would like to edit with a regular expression to automatically update it. The file contains several lines, all in this format: $myVar = "myValue"; What I want to do is ...
0
votes
0answers
44 views

C++ handle producer-consumer on file shared by two different machines [on hold]

I have to write a program that allows two different machines to read and write a shared file. These two machines could be either Windows or Linux, in particular this program must work even if one ...
0
votes
0answers
21 views

Google Drive Api PHP Delete Multiple Files

Help... Got a problem deleting multiple files in google drive api using php. i have found a link for batch delete but it use python. im trying to recreate it using php but it does not work. anyone ...
0
votes
1answer
39 views

Python going onto the next line in a file when it shouldn't be

Alright, so I am still relatively new to Python programming, and this seems pretty simple, but I must just be missing something really simple. So, I am trying to make a really simple text editor based ...
-3
votes
0answers
52 views

How do you read from a file and turn that into a binary tree in C? [on hold]

I am relatively new to C programming, and I'm working on a library management project using data structures. One part of the project involves reading from a file that contains a user ID, book title ...
0
votes
2answers
45 views

Stuck on what to do next in this program and the question is this. Create a Python program that finds a city and state from a given zip code?

def main(): print("\nZIPCODE LOOKUP PROGRAM") zlist,clist,slist=loadLists() userInput = searchLoop(zlist,clist,slist) def loadLists(): # create a list try: zlist = [] ...
-2
votes
1answer
22 views

html form does not send values to php

Im having trouble getting $first and $second and $operation to be sent through to php and i dont know what im doing wrong <form action="calculator.php" method="post"> <fieldset> <p>...
0
votes
0answers
7 views

Safari v11+ not working with blueimp/jQuery-File-Upload plugin

I am stumped at the moment as to why I am unable to get the blueimp/jQuery-file-upload plugin to work with the desktop Safari browser. My QA tested with v11.2 (MacOS El Capitan) and I've tested on v13....
0
votes
2answers
27 views

Put two strings into a key and the rest into value from multiple lines in file

My file has something like this: House Plant, 2, 5, 6 House Plant1, 4, 5, 7 ... and so on I want the two words to be as keys and the numbers as integers values and put all of the lines into a ...
-2
votes
3answers
52 views

FileInputStream throws FileNotFoundException

This code throws FileNotFoundException. Edit: As requested I have included the full StackTrace. import java.io.FileInputStream; import java.io.InputStream; public class ReadFile{ public static ...
0
votes
1answer
15 views

How to view end edit html files on iPhone using files app?

How do I edit and view html files using the files app? (The files app is an app provided with the phone) I can’t seem to find any option such as “new file”.
-1
votes
0answers
29 views

Why does java.lang.NullPointerException error happend in my program? [duplicate]

My program wont give an output on the file. Build was successful but the file has no output. it shows the error "Exception in thread "main" java.lang.NullPointerException at readtextfile3....
-2
votes
2answers
49 views

Comprehension List and new File

Example of two text files. The left image is before, the right one is after I need to swap the dates in one file and put it on a new file using comprehension lists. How would I do that? This is what ...
0
votes
0answers
22 views

C++ User login program only reads the first line of file

void abc::loginUser() { abc x; fstream file; char usr[25]; string pwd = "",line; int ch; file.open("user.txt"),ios::in; cout << "User Login" << endl; cout &...
-2
votes
0answers
10 views

Download files sent by Telegram bot to me (Python) [on hold]

I want to run a script in the cloud which sends me notifications and files via a Telegram bot. How would I be able to read the messages and download the files with Python?
-2
votes
0answers
10 views

How to scrap email body and relevant information and store it in file

I am trying to fetch the email body and some relevant information and store it in a file. Using Imap I will fetch information but the output not save in a file.
0
votes
0answers
23 views

Spring Batch : How does ClassifierCompositeItemWriter decide whether to create a new writer or use an existing one?

Given a Spring Batch job that uses chunk oriented processing, I have a requirement to write the same data to different files depending on the value of an attribute. In other words, I need the output ...
0
votes
0answers
19 views

Exposing an API as multiple named pipe (FIFO) files in C

I'm creating a C application daemon that I want to be able to interact with through named pipes. For example, I write in the shell echo hello > /tmp/appname/interface, and the application reads it ...
0
votes
0answers
46 views

EDIT****Why is every record transferring to a new file when I have a loop set to filter out the one I want to delete?

Edit**: I have worked the code to locate the first record and to bring it to the delete function; it verifies that you want to delete, and is supposed to transfer the non delete records to the temp ...
-2
votes
1answer
17 views

In the given code, whichever block i place first sequentially returns a result while the one i place [continued in desc]

[continuation]- second returns the result as zero, why and how do make both read functions work with the same file name? CODE: myfile=open(r'C:\Users\win8\Documents\Cs Record\trust.txt','r') ...
-1
votes
1answer
36 views

How to know what was the type of the file before being compressed?

For example, if we have the following file: file.txt that after the compression is now file.new (new is the new extension) , how to obtain that .txt extension, that is forgotten? I need that to ...
0
votes
0answers
22 views

How to turn a Width*Height sized 1d array of RGB565 values into an image in C++

I have a 1d array of 16 bit integers that represent RGB565 pixels. In my understanding this means: The 5 most significant bits represent red. The 6 next bits represent green. The 5 least significant ...
-1
votes
1answer
29 views

Calling a Function and using a file as a reference

I am in a Beginning Programming course and have been having an issue with a program. I need to create a program that should read a file of around 100,000 integers and determine whether or not they ...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞