Questions tagged [file-manipulation]

219 questions
0
votes
2 answers

Creating a 'New File Windows' behavior

in a windows environment and in several applications, when we create a new file with the same name of an existing file, the user is not prompted with a message that the output file already exists, but it creates a new file with (1) at the end of the…
balexandre
  • 73,608
  • 45
  • 233
  • 342
0
votes
2 answers

Efficient adding text to the and in android

There is one very nice feature in shell for example # "asd" > myfile.txt puts "asd" in myfile.txt if the file exist first it is deleted then it is created and the content is put in the file. but if # "asd" >> myfile.txt and if the file exist then…
Lukap
  • 31,523
  • 64
  • 157
  • 244
0
votes
1 answer

Cannot create file mapping for a file I just opened, get "path not found"

I'm trying to the CreateFileMapping() function (on windows). Now, in this piece of code: hFile = CreateFile(filename, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_DELETE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); hFileMapping =…
MeLight
  • 5,454
  • 4
  • 43
  • 67
0
votes
0 answers

Drupella File Manager for uploading a file. need create folder feature in d9

I have used Drupella File Manager for uploading a file ..but i need create folder feature also in this contrib module iam using it for drupal 9 is there any way to add this feature can anyone please give me an idea i need create folder feature along…
0
votes
1 answer

nested for loop giving no output when working with two lists

I am making a file sorter in Python and I have two lists. One is called downloads, which holds the names of all of my files in my downloads directory, and the other is called files, which is intended to hold all of the needed information about each…
Pink Pit
  • 29
  • 5
0
votes
1 answer

Extracting data from multiple PDFs

I have 200 PDF files, all formatted similarly. Currently I am opening each PDF and looking for the two relevant values and typing them into an Excel table, all manually. I'm wondering if there is a way to automate this. My (non-IT background) idea…
maliebina
  • 205
  • 6
0
votes
0 answers

How can i get filled inputs on browser using javascript for PDF files?

When I open the PDF with input fields in the browser, how can I get the values entered by the user with Javascript? But I don't want to use the browser's own feature. My goal: The PDF opens on my system (a website). After the PDF is opened, the user…
s3458
  • 1
0
votes
0 answers

Copy Files from Internal Storage to SD Card

I am trying to copy a file from internal storage to external storage (SD card) in my Android application. I have the source file in a File object and the destination folder in a String, but I keep getting the error "java.io.FileNotFoundException:…
0
votes
0 answers

Gradle "exclude" from folder inside distribution zip

I am creating a distribution Zip and Tar file using gradle (java) distribution plugin. My java project creates the file "abc.jar" inside the "lib" folder and puts all "implementation" libraries beside it. (<- I also tried to change this behaviour,…
0
votes
1 answer

How to efficiently read and delete a specific line of a large file with a custom newline character using Python (3.9 preferred)?

Similar to this question, but slightly more complex I have a large txt file, that looks something like…
XYZ
  • 1
  • 1
0
votes
1 answer

How to move files in a other folder with base on a df list

I'm download 20.000 files .png and put in order to specific folder name. Each folder has 1 or 2 .png files. link of example: https://drive.google.com/drive/folders/1di8b1L1i1lc2ZKTAWyrNiZNpxMmGcQAH?usp=share_link order_NEW<- data.frame(ACCESION=c('G…
0
votes
1 answer

Looking for an efficient way to delete a specific portion of a file in C, without copy-pasting it... Read question to understand why

My client-server application simulates a showcase (like a Facebook one). As with every client server application, the server might crash, or go down for electrical deseases or whatever, therefore it was crucial to elaborate a backup system. As long…
ZODIACK
  • 23
  • 5
0
votes
0 answers

Java - How do you convert Java Discord API stereo byte[] to a CMU Sphinx 4 format?

I've been stuck on this for what feels at least a week. I have looked at various solutions to similar issues and related sources / documentation but still don't understand how this is supposed to work. I'm trying to use Java Discord API with CMU…
0
votes
1 answer

Moving and copying multiple files

I will have list of source path & destination path in excel, How can I move these…
0
votes
1 answer

Use Path.GetFileNameWithoutExtension method in C# to get the file name but the display is not complete

This is the simple C# code I wrote : string file = @"D:\test(2021/02/10).docx"; var fileName = Path.GetFileNameWithoutExtension(file); Console.WriteLine(fileName); I thought I would get the string "test(2021/02/10)" , but I…
david.gao
  • 41
  • 8