Skip to main content
The 2024 Developer Survey results are live! See the results

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

Create New File in Android 11+ Jetpack Compose

I try to save a File with data my app produces to shared storage. I want the file to be: persistent after App uninstall be of any mime-type I would prefer the file to be put in the "Download&...
mad_mosel's user avatar
0 votes
0 answers
9 views

Trying to read a log file using typescript

How do I read a log file using typescript -- I've tried using fs - but it says the module is not found. I've tried to use a promise - but then its not resolving. should I place the test file in the ...
The Old County's user avatar
1 vote
0 answers
23 views

Good way to understand if file has been just created rather than modified in Linux

I need a way to learn if a file has been just created (rather than e.g. modified). I do it like this: const bool isCreated = ((f.atime.tv_sec == f.mtime.tv_sec) && ...
JenyaKh's user avatar
  • 2,288
1 vote
1 answer
47 views

Why address of the files stored on disk (of vbox vm) are different each time i look at them?

I am aware of ASLR which loads the program at different memory locations each time, however, I am not sure why this is happening in the case of files that I have stored on disk /dev/sda2 of my Linux ...
whiteheart's user avatar
2 votes
1 answer
42 views

After moving a file to another location, and then creating a file with the same name in the original location, the creation time is incorrect

My code: //Move the file to another location File.Move(@"D:\Test.log", @"D:\LogHistory\" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".log"); //Create the ...
MrHu's user avatar
  • 23
0 votes
1 answer
31 views

ABAP Program: Append the content of two binary files into one file

In my ABAP program, I have the content of two binary files of the same type as XSTRING. Binary files such as: docx, xlsx, pptx, pdf, etc. I need to append these two files content to another file of ...
Mhsoftware's user avatar
0 votes
1 answer
40 views

How do I run a python file from another python file [duplicate]

I am trying to run a python file from another python but when, when it comes to calling a method in another python file it just reruns the current python file. I tried this code. I put the import ...
Kael Scanes's user avatar
1 vote
1 answer
22 views

VS2022 Can't set File or Assembly Version in DLL

In this previous question of mine, I thought I had worked out setting version information in a VS2022 C# project. But I seem to have run into the issue again and can't figure it out. The main ...
Peter M's user avatar
  • 7,409
0 votes
3 answers
82 views

Trying to read txt file line by line in C Language

Basically my input file is in the format: I 15 3 15 10 10 20 S -5 3 15 82 I -20 80 -4 10 S 4 -20 8 The number of ints in a row can vary, but there is always one char at the beginning of each ...
Neel Varma's user avatar
0 votes
1 answer
39 views

function to return number of characters in n line of a file return always those of line 2 in c

the function is supposed to return the length of a line specified by the 2nd argument but the result is either 0 or the one in the 2nd line whatever n may be: int line_length(const char *filename, int ...
Pepe Cuesta's user avatar
-1 votes
0 answers
19 views

I have a problem where I ran a command some weeks ago and now have files suffixed with a ~CAPITALS and would like to resolve this [closed]

I have lots of files that have a suffix appended to the file type part of its name so for example test.exe now is test.exe~ABCED102 and mypic.png is now mypic.png~0FGECDUR The pattern is always ~ with ...
MrMajorThorburn's user avatar
3 votes
2 answers
77 views

How to find the file that contains the code of an R function?

I have R 4.3.2 installed on my Windows PC. I downloaded it from https://cran.r-project.org/bin/windows/base/. I have not downloaded the .tar.gz file with the R source code. I know how to view the code ...
Francisco Jácome Maura's user avatar
0 votes
0 answers
18 views

How can I view all the uploaded files associated with an Azure OpenAI assistant in Python?

I’m using Python to benchmark questions from documents and have instantiated my assistant in a jupyter notebook. I’d like to confirm the assistant has the files I uploaded to it but can’t seem to find ...
Celi Manu's user avatar
  • 431
-2 votes
0 answers
17 views

PDF not getting opened in Slack Channel using remote.file.share

When I am sending PDF file to slack using slack api: files.remote.share. The PDF file sent successfully but when i amd opening that PDF in slack then it is showing crashed. PDF Crashed image I tried ...
Arshmeet Singh's user avatar
1 vote
1 answer
65 views

Conversion to Java of a Delphi algorithm for CRC checksum for file

I was given this Delphi code: unit lib_CRC; interface uses SysUtils; function CalculateCRC(Text: String): String; implementation{ CRC Code generation routines } const{: @summary CRC Code generation ...
SagittariusA's user avatar
  • 5,429

15 30 50 per page
1
2 3 4 5
5443