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
0 answers
6 views

How to download a drive.google.com/file using linux cli

I have been trying to download a file from a drive.google.com/file/d/FILEID/view?usp=sharing link with wget, but it can't seem to work. I just get a very long text file with html code in it. I have ...
Ethan's user avatar
  • 1
0 votes
0 answers
12 views

How to get objectURL of a file passed using FormData in server?

I am using NextJs 13 server actions. I am trying to upload image using server action. In client side react we could easily get the url of that image path. But when in server side i get this url blob:...
Rosan Paudel's user avatar
0 votes
0 answers
18 views

How to render external file/component into my React app?

I want to know how can I render external file/component into my react js app? I have this file name file.jsx it contain some code: import React from "react"; const TestingFile = () => { ...
CODEX's user avatar
  • 1
-1 votes
0 answers
9 views

Output DOS command with colon to text

I'm trying to capture a DOS command's output to a text file but am experiencing problems. The command I want to capture the output for is: nltest /sc_verify:domain.com This works fine when not ...
JAG's user avatar
  • 39
-2 votes
3 answers
61 views

Removing duplicate lines from file does not work correctly although using a set and strip()

Write a Python program that reads the contents of a text file called "input.txt," removes duplicate lines, and writes the unique lines to a new file called "output.txt." Consider ...
Nisha Makwana's user avatar
-1 votes
2 answers
65 views

Java - String that starts with '#'

Can someone explain to me, why we need to write 'line.indexOf('#') == 0' in this code? I'm trying to load data from a text file and create objects. Path path = Paths.get(getClass()....
VennaTT's user avatar
  • 11
-1 votes
0 answers
10 views

Manage Files in Terminal on Mac why can't my file move from Pictures to Download with mv (zsh)

syntax problem: mv:Downloads is not a directory sofiavanessa@Sofias-MacBook-Air ~ % pwd /Users/sofiavanessa sofiavanessa@Sofias-MacBook-Air ~ % ls Applications Desktop Documents Downloads ...
DoseFactor's user avatar
1 vote
1 answer
29 views

Creating a virtual file on disk

I have an external program (as an executable binary) that consumes input files that potentially could be very large. I'm writing a C# application that will take data from our DB; write a segment of it ...
Bugmaster's user avatar
  • 1,060
-1 votes
0 answers
15 views

Revert Binary Hex to PDF File C#

I'm using the following code to download a pdf file and writing the contents to a varbinary column in sql server. WebClient MyWebClient = new(); byte[] contractPdf = MyWebClient.DownloadData(fileUrl);...
Rahul Chawla's user avatar
0 votes
0 answers
19 views

Filament File upload with action

I have a Filament resource and I want to import data to the Model using the file upload and laravel-excel feature. Action::make('import')->label('Import Data') ->form([ ...
Fasna's user avatar
  • 564
0 votes
1 answer
51 views

Extract and Write a txt in Python

I have a file that contain multiple sets like this, not every sets its equal to this, i need to extract I1,I2,...I8, OG1,OG2,...OG8 and K1, K2 values. I need to associate that values to the string ...
Luigi annoso's user avatar
0 votes
1 answer
24 views

Sending uploaded file from JS to Python CGI always results in ampty dictionary

I have an HTML form that has a file input element. When submitting the form, a JS function is executed which checks if the uploaded file is a PDF file and is less than 10MB. All of this works ...
Mr_BananaPants's user avatar
-2 votes
0 answers
49 views

How to render external file.jsx into the app in React js?

I have this file call file.jsx, and I want it to render this into my app but the directory is outsite from my app. I want it to render and output like a normal component to my web browser. This is my ...
Dalkom's user avatar
  • 1
1 vote
0 answers
15 views

Downloading an .XLSX-file from the public folder in React fails in production

The following code works just fine locally, with my .xlsx located in the public folder: <Button variant="text" as="a" download ...
coprime1's user avatar
  • 365
0 votes
0 answers
15 views

Directory size changing date modification and creation in windows with python 3

I have a list of paths that are directories located on some windows shared drive that I want to obtain the sizes of. When I pass a path to my get_size function I get the correct size but doing so ...
cloudiebro's user avatar
0 votes
0 answers
12 views

Accessing txt file from another app that is saved on phone || open failed: EACCES (Permission denied) || Android Studio Java Android 11+

so I'm quite new to Java/Android Studio etc. I want to access a file that is another app safe in the path "/storage/emulated/0/DataLogger/" I tried this: private String get_feature_string(...
Jan's user avatar
  • 1
0 votes
0 answers
24 views

What would be fast and reliable way to verify files? [closed]

I need to quickly (down to seconds) verify files that weight over 7GB. Files content will change from time to time and they need to be redownloaded. I have full controll over files content, so my idea ...
Alkyone's user avatar
  • 21
0 votes
1 answer
24 views

How to move files into folders where folder name is the date created?

I have a lot of files that I want to move into folders where the folder format is YYYY-MM and any file that was created within that YYYY-MM should be placed inside it. I would like to do this using ...
usernameabc's user avatar
0 votes
1 answer
55 views

An error occurred in the fscanf(), it only read the last line? [closed]

This is the code, I want to skip the last two string and read the first integer. fp = fopen("test","r"); int i; while (fscanf(fp,"%d %*s %*s",&i) > 0) { printf(&...
kang kang's user avatar
0 votes
1 answer
14 views

Php ftp_connect() doesnt work and returns false

<?php if ($_SERVER['REQUEST_METHOD'] === 'POST') { $ftpServer = 'ftp://123.website.com'; $ftpUsername = 'username'; $ftpPassword = 'password'; $remotePath = $...
GameTies's user avatar
0 votes
0 answers
36 views

Read EBCDIC file in Python

I've been trying to read a .ebc file but been unable to. I would like to save it as a .csv or txt file. (I'm new to this file format, so unsure on how to move forward) This is a description of the ...
Veronica Guzman's user avatar
-2 votes
0 answers
52 views

How to rename a file with Jquery before download it? [closed]

I have a html-jquery script to download a lot of files. This files are downloaded by calling the event onClick on all those url. They are automatically saved on Download folder. But I would like to ...
Keras-JOB's user avatar
  • 105
0 votes
0 answers
8 views

How to find virtual machine throught windows

I work with samba on my vm, I created directories and configured it,but when I go in my mainPc where vm installed,I cant find it throught windows,according to instroctions I have to put ip in next ...
Владислав 's user avatar
0 votes
0 answers
25 views

Generated JAR file - JNI error has occurred intellij [duplicate]

I've created a maze for a project i've to do to pass an exam, when i try to generate a jar file and i try to run i've got this problem: JNI error has occurred. Someone can help me? i don't know what ...
Antonella Sannino's user avatar
0 votes
0 answers
10 views

Looking for PDF converting Softwares [closed]

AI files, being native to Adobe Illustrator, can be a hurdle when I'm trying to share my work with clients or team members who don't have the software. How do I ensure they view my designs without any ...
Pablo Rothbart's user avatar
0 votes
0 answers
25 views

Making a powershell script download files quicker from AWS S3

We have a third party service that uploads files to a certain s3 bucket in our account. The amount varies and it can sometimes reach a few hundred files in a few minutes. Also, each time a file is ...
Xanthus's user avatar
-2 votes
0 answers
39 views

program input works properly when i use cin to receive a string but gets stuck when i use gets()

The purpose of the program is to get a string from the user as many times as the user wants and input it to a file. The problem of my code is with the function gets(). It works fine receiving the ...
Abem Chegen's user avatar
-1 votes
0 answers
26 views

Deleting a row at a particular index in a csv file using CsvHelper in C#

I want to delete second row in a csv file using CsvHelper in C#. I can easily do that by copying entire csv file in a list and then deleting the particular row and then again writing back in that csv. ...
DharuvVerma21's user avatar
0 votes
0 answers
9 views

How to compress tiff multipage image in c#

I am using BitMiracle.LibTiff.Classic library but it does not work as the compress multipage tiff file shows "windows photo viewer cant open the picture because the file appears to be damaged,...
Rohit Dabhade's user avatar
0 votes
1 answer
36 views

How to Return an Image with Description in FastAPI

I'm working on a FastAPI project and I need to return an image along with its description to the user. I have implemented the functionality to return the image, but I'm not sure how to include the ...
Zeus's user avatar
  • 1
0 votes
0 answers
14 views

I have a problem when open Android studio app

I want to stop showing file system events processor alot when open Android studio please answer my question That occur when open Android studio only What solving [enter image description here] I try ...
Mariam's user avatar
  • 1
0 votes
0 answers
19 views

Display content from tinymcewith images

I am building a document management systems that allows users to create document using Tinymce. Users can add images to the document then saving the document will automatically generate a pdf file. I ...
Emmanuel's user avatar
-1 votes
0 answers
32 views

Python file.writelines() writing same texts multiple times

My code : import os f = open('ConClusion.txt', 'a') file = '\solutions\Fans.txt' path = os.getcwd() + file files = open(path, 'r+') new = ''.join(files.readlines()) f.writelines(new) print('complete ...
Gaurav Yadav's user avatar
-1 votes
0 answers
46 views

File created by program cannot be opened by it [closed]

I'm creating a program that receives a name for a text file, creates it and then opens it for the user, not for the program itself, when I execute it the file is created but not opened. Visual Studio ...
Daniel Marhuenda's user avatar
-3 votes
0 answers
11 views

Some files are not writable by WordPress: [closed]

Some files are not writable by WordPress as : not writable by WordPress Although these files have permissions of 644,755 my OS is AlmaLiunx When I set the permissions to 777 or 666, the problem ends, ...
Hala Mohamed's user avatar
2 votes
1 answer
31 views

How to use data annotation validation in c# while doing file export using excel files

im doing file export functionality with Excel in C#. I have used data annotation for model validation. I have two column values such as Department, SubDepartment. If both values are same should return ...
Vidya R's user avatar
  • 47
0 votes
0 answers
34 views

How to access linux host file system using Zephyr QEMU X86_64

I am trying to access my Linux host file system from Zephyr running in their QEMU X86_64 target to have easy file sharing. Following this QEMU wiki, qemu -drive file=fat:rw:some/directory can be used ...
bbawj's user avatar
  • 46
-5 votes
1 answer
44 views

How to end a file in a newline in c? [closed]

printf("\n"); return 0; } #endif hello everyone, These are the last few lines of my code, is this how you end a file with a newline in C? Or do they mean something else when they say ...
sauce's user avatar
  • 7
0 votes
1 answer
32 views

export a single (.class) file

I'm trying to export a single class file (.class) separately from my code in IntelliJ IDEA. I attempted to follow some online advice and the official instructions by going to 'File' > 'Project ...
Joya Wilson's user avatar
0 votes
0 answers
7 views

Get creation and last modified date from a PAR file created in Solid Edge

I do not have Solid Edge installed, but I need to get internal creation and modification dates from the file. Not Windows/Linux last edited/created dates, but internal, as system-controlled dates get ...
Кирилл's user avatar
0 votes
1 answer
32 views

Android URI wrong path why?

I have a file File tempFile = ....// creating the file String fPath = temFile.getPath(); //this will return - /storage/emulated/0/Pictures/A //After that I get the URI URI uuu = FileProvider....
Bisser Milanov's user avatar
0 votes
0 answers
25 views

Temporary file not deleted after calling deleteOnExit

This is my current implementation to create a temporary file inside the cache directory on Android. However, this file is supposed to be deleted after I close my app. Yet, this file is still present ...
segoSambel's user avatar
0 votes
0 answers
12 views

Convert PDF to PXS Format [closed]

I am looking for a way to convert a file with PDF format into a PXS Format? I cannot seem to find a solution online. I found a way to do it vice versa but not the way I need. The online converting ...
Tsvetomira's user avatar
-1 votes
0 answers
33 views

List of files into single data frames R [duplicate]

Hi I have a list of files; filelist <- list.files('filenames', full.names = TRUE) Filelist contains 15 filepaths, and I want to make these as 15 separat dataframes. How can I do so?
Hellihansen's user avatar
1 vote
1 answer
27 views

Remove embedded files from PDF using PDFBox

I'm trying to remove all embedded files from PDF using PDFBox, inside a Java application. I'm using PDFBox with Java. Not command line tools. There are many examples how to read embedded files using ...
digitalfootmark's user avatar
0 votes
0 answers
14 views

Does anyone have any example of Python (with RDFLIB, if possible) code for comparing 2 RDF files that works for file size greater than 2 GB?

I found problems comparing large RDF files (2 GB each, for example), as I used RDFLIB library (python) in memory mode. I discovered the possibility of using Oxigraph (external store), so would be ...
Jose Miguel Boeres Filho's user avatar
-2 votes
0 answers
23 views

Decoding .dat and .edf files [closed]

I have both a .edf, .dat and a checksum number that hold important information a program uses, I wish to modify the data within. I looked at the files on a hex editor but it seems to be encrypted? I ...
reactoimpact's user avatar
0 votes
0 answers
11 views

How do I display files (.txt, .pdfs, .word, etc) in my directory program. JAVA

I am having trouble displaying the files in directories when I display it on my program and get an exception. I am using a tree structure to try to import my files and display them. Exception in ...
Fernando Romo's user avatar
0 votes
0 answers
15 views

Window slicing when loading glade file

I have a problem where when I close glade and reopen glade and the glade file, the window slices up a little one top for no reason: [Before closing and reopening glade and loading the file] [After ...
user22563018's user avatar
1 vote
2 answers
47 views

How to change a line after read a line in file?

This is my code. read a line and change it. char buf[SIZE]; while (fgets(buf,SIZE,fp) != NULL) { to_upper(buf); fseek(fp,-1L,SEEK_CUR); fputs(buf,fp); ...
kang kang's user avatar

1
2 3 4 5
1625