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.

0 votes
0 answers
11 views

Selenium Drag & Drop file to CRM form

I am writing CRM Dynamics automation using C# & Selenium. I have a place that the user can DROP files to. The tag there is < folder > When I do it manually, I can drop file onto it. When I ...
  • 644
-1 votes
1 answer
29 views

Reading in fasta file C++

I'm trying to read in a fasta file. I want to remove/ignore the header/info lines that begin with ">" and store the following sequences into sperate strings. Below is the code I have to ...
0 votes
0 answers
15 views

Javascript Get File Interface Extension

Is there a library to get file extension for File Type in JS or Typescript? We are currently doing this code: if (files[0].name.slice(-4) !== '.csv') { errorMessages.push('File must be in CSV ...
0 votes
0 answers
17 views

How do I get a shared network folder security by python?

I am trying to get a shared network folder security information (who can read, who can write, who can w/r and who can fully control)by python, so I am using win32security, my code: import ...
  • 16
0 votes
1 answer
16 views

How to open a PDF file in its associated application in a UWP application?

I have a UWP application that contains a PDF file in a folder called Images and I need to open the file in its associated application on Windows (a browser or a PDF reader). I've seen all the similar ...
0 votes
0 answers
5 views

In terms file path, does forward slash function as same as dot forward slash?

As I know, './' points to the current parent folder of a file while '../' moves up one level higher to the parent folder of the current folder. Otherwise, some documents also recommend about the usage ...
2 votes
2 answers
16 views

Why string is not being written to file here

I am trying following code: public static void main(){ var file = FileStream.open("string.txt", "rw"); assert (file != null); try{ file.puts (new DateTime....
  • 22.5k
-2 votes
1 answer
22 views

Should I add a regex to a function that opens a file and prints each line with a keyword?

I feel like I should be adding a regex somewhere in the loop, but I'm not exactly sure which would best fit this function or how I should properly complete the for loop below. def print_lines(keyword, ...
1 vote
1 answer
32 views

Powershell if file is different then do something

As the title suggests, how do I do an if statement for comparing 2 files? This is what I have so far but even though the files are the same it still keeps prompting me for an update Add-Type -...
0 votes
0 answers
14 views

Disable camera option in mobile browser when uploading file by input tag

I am using a file type input. It should accept only images file formats. So I added the following input tag - <input type="file" accept="image/*" multiple (change)="selectFiles($event)" /> ...
0 votes
0 answers
16 views

Python Code for Uploading file to Azure SQL TABLE

I am completely naïve to the Python. I am trying to upload a file from local machine to Azure database using BCP utility. I tried 2 options: import bcp conn = bcp.Connection(host='<Azure hostname&...
  • 65
0 votes
0 answers
10 views

Can we store the assertion failure response in a variable or a file?

we are comparing 2 json files through below code and we want to store the assertion failure response (console output) in a file . Currently we are getting response as below in a console when the 2 ...
  • 11
0 votes
0 answers
12 views

Upload and Read the file content with node/express.js

I want to extract the uploaded file's data and save it to the MongoDB database. (Currently, I am saving the uploaded file's path but I want to save the file's content only) The controller function: ...
0 votes
0 answers
6 views

How to read a variables stored in a file and use it in a bash code [duplicate]

I want to read variables from a different file and use it in a bash code for example, XYZ.txt: x=1 y=2 z=3 XYZ.txt has 3 different variables and I want a bash code to read xyz.txt and use it: #!/bin/...
0 votes
1 answer
24 views

Picking up files with specific names in Python

I'm designing a tool that should only pick up EXR image files from the input folder that follow the naming convention: u#_v#.exr or u#v##.exr (where # denotes whole numbers or positive non-zero ...
  • 5

15 30 50 per page
1
2 3 4 5
5280