Category "file"

How to copy files from local machine to docker container on windows

I have to import data files from a user local file C:/users/saad/bdd to a docker container (cassandra), I didn't find how to proceed using docker commands. I'm

Open a file's properties window using Java

This is a question only regarding Java in Windows. I need a method that will call this window: So essentially the method should be something like: public v

Function to parse automaticly files .txt after 24 hour in c++

I have a project and I'm new to C++ Well I have to parse a file.txt that contains transaction informations in an ATM. And there is files named as the date of th

What is the encoding to read and write files with special characters such as en dash, left quotes, etc?

I'm reading csv files that contain special characters such as the long en dash –, left double quotes “, and right double quotes ” and I can't

Node.js Large File Uploads to MongoDB blocking the Event Loop and Worker Pool

So I want to upload large CSV files to a mongoDB cloud database using a Node.js server using Express, Mongoose and Multer's GridFS storage engine, but when the

Create API for upload file to zoho catalyst using node js

I am creating API for upload file to Zoho Catalyst using Zoho Catalyst dependancy but i got an error that request body is wrong format. expressApp.post('/upload

myFile.write(item+"\n") TypeError: unsupported operand type(s) for +: 'int' and 'str'

Getting error: myFile.write(item+"\n") TypeError: unsupported operand type(s) for +: 'int' and 'str' and not sure why. Where shall I add the int? This i

Download file from API using javascript

I need to force download of file using JavaScript. I am using Angular and restangular to communicate with API. I am now working on file download action from API

OutputStreamWriter.append not appending text to a text file Android Programming

File file; FileOutputStream fileOutputStream; final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CAT

Where does the file get saved using "File file = new file(filename)" in Android

I am writing an android application. In the MainActivity.java, I created a method to write and then read contents from a file. These code runs successfully I an

Write a function to take a text file and print the number of lines, words, and characters in the file

I am currently struggling with a question related to Python File I/O. The question I that I fail to be able to complete is this: Write a function stats() that

Can we use two buffered writers to write on the same file with java, in the same class?

I have been wondering if I cam use two bufferedWriters to write an external file with java. This is what I did: But there is only written X in my created file

How to import and play all audio files from a directory in React?

I am trying to play each audio file located inside a directory using React. I can play one file as follows but I do not want to import each file since there 70

how to search for a file with php

First thing is first. I am not a php developer this is something that is needed for my job so I took it on and I am learning as i go Right now we have an excel

How to compare two files in Notepad++

I want to compare values from two different files. In Notepad++ version 5.0.3 we had shortcut button Alt+d but in version 6.6.8 I cannot find any option to comp

I can't download the mongoose.exe

The Story So, I wanted to see what a small web server was like, and I discovered mongoose, a nice, small, simple web server for static sites. Then the horrors

Is it possible to check if a two files shares the same name using batch file?

I have here a example directory that contains files with the same name but different extensions. - MAINFOLDER ˪ TEST.JPG ˪ TEST.PNG ˪ RAN

Calculate the size of all files in a bucket S3

I want to calculate the size of all files that are in a S3 bucket in python and this is the code I tried so far: import boto3 s3_client = boto3.client('s3') b

How to get the "Last Saved By" property for workbook file

In Windows Explorer, if I right-click a file and choose Properties to get the file's Properties window, and then select the Details tab, there is a property lis

Copy file handle so that there are two independent handles to the same file

I have a Python program which does the following: It takes a list of files as input It iterates through the list several times, each time opening the files and