Questions tagged [overwrite]

Overwriting is a process of replacing content with other content in place. It can be physically replaced on storage, or overridden with newer version of content type.

Overwriting is a process of replacing content with other content in place. It can be physically replaced on storage, or overridden with newer version of content type.
Not to be confused with Override in Object Oriented Programming.

1479 questions
3
votes
1 answer

If file is not overwritten then quit installer

I am using: ; Set output path to the installation directory. SetOutPath $INSTDIR\ SetOverwrite on ; Put file there File "ACC\*.APP" to overwrite a file, but if the file can't be overwritten, then I want that the installer quits, how to do this?…
sqlchild
  • 8,754
  • 28
  • 105
  • 167
3
votes
1 answer

R error overwriting file that is not there

I'm trying to write a file using openxlsx: saveWorkbook(wb, file=filename, overwrite=T) gives me no error but no file appears, while > saveWorkbook(wb, file=filename, overwrite=F) Error in saveWorkbook(wb, file = filename, overwrite = F) : File…
abalter
  • 9,663
  • 17
  • 90
  • 145
3
votes
2 answers

Kotlin File.copyTo throws FileAlreadyExistsException with overwrite set to true

I am developing an application which has some specific requirements, one of these is to log every single action performed on the app: Action performed by the user Log the action with Timber Append that row to a log file in the device's external…
Cliff Burton
  • 3,414
  • 20
  • 33
  • 47
3
votes
2 answers

Dataweave - Replace value of a field in an object

I have a Java Object as input payload: { "name"="Michael", "surname"="Alpha", "mail"="demo@gmail.com", "gender"="Male" } I want change the gender value keeping the rest of the message: %dw 2.0 output application/java --- gender: if(payload.gender…
gtx911
  • 1,189
  • 4
  • 25
  • 46
3
votes
4 answers

How can I overwrite a php function that has a argument type hint set?

I am trying to extend a package with my own functional ability. But the package code has type hints in the function calls, to other classes that are part of the package. I am just looking for a way to modify the code. More details about what I'm…
Terre Porter
  • 63
  • 2
  • 9
3
votes
1 answer

overwrite data in google sheet using python

I have been trying to write to google sheets, I have been able to do so, but instead of amending and adding more and more data, I would like the data to be overwritten(erased and replaced in the same location) I'm using python and though it's not…
3
votes
2 answers

how can I overwrite __mul__ function in python

I wrote a class in python like this class Vector(object): def __init__(self, coordinates): try: if not coordinates: raise ValueError self.coordinates = tuple(coordinates) self.dimension = len(coordinates) …
chengjun zhang
  • 101
  • 1
  • 1
  • 9
3
votes
3 answers

Delete part of a file in C

How can I create a function to delete certain part of a file? For example, the file is: -. Chair: A23 Number: 123 Name: Joshua -. Chair: B12 Number: 512 Name: Marcus -. Chair: C2 Number: 1 Name: Drake If the input…
Rafael Santos
  • 39
  • 1
  • 6
3
votes
1 answer

Overwriting part of a file results in empty string Python 3

EDIT: The solution was simply changing how I was opening the file (thanks Primusa), not how I was replacing the information. I am attempting to overwrite parts of a file, but my code does not work. When it runs, it completely erases everything in…
The Eye
  • 59
  • 12
3
votes
3 answers

Join and overwrite data in one table with data from another table

How to join and overwrite data appears to be a common request, but I have yet to find an elegant solution that applies to an entire dataset. (Note: to simplify the data, I will use only 1s and NAs for values and a small subset of columns, but in…
AlexR
  • 791
  • 2
  • 8
  • 22
3
votes
2 answers

Writing and modifying an existing workbook using Python

I am new to Python and working on a project that I could use some help on. So I am trying to modify an existing excel workbook in order to compare stock data. Luckily, there was a program online that retrieved all the data I need and I have…
vdub32
  • 193
  • 1
  • 5
  • 12
3
votes
1 answer

Writing to an existing Excel Workbook using xlwings

I am new to Python and working on a project that I could use some help on. So I am trying to modify an existing excel workbook in order to compare stock data. Luckily, there was a program online that retrieved all the data I need and I have…
vdub32
  • 193
  • 1
  • 5
  • 12
3
votes
3 answers

Scrapy: command to overwrite previous export file

Set-up I export my data to a .csv file by the standard command in Terminal (Mac OS), e.g. scrapy crawl spider -o spider_ouput.csv Problem When exporting a new spider_output.csv Scrapy appends it to the existing spider_output.csv. I can think of…
LucSpan
  • 1,831
  • 6
  • 31
  • 66
3
votes
2 answers

Disable a built-in function in javascript (alert)

Simple: I want to disable/overwrite alert(). Can I do this? More importantly, is it right to do this? What about strict mode?
Félix Saparelli
  • 8,424
  • 6
  • 52
  • 67
3
votes
2 answers

Gulp is not overwriting the destination file

I've got a problem, regarding gulp. I decided to automate the process of how the source and styles are compiled into a single file, so I decided to use gulp for that purpose. However, it doesn't want to overwrite the application.js file that I'm…
GBak
  • 103
  • 1
  • 10