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.

1342 questions
-3
votes
1 answer

concatenate words in a text file

I have exported a pdf file as a .txt and I observed that many words were broken into two parts due to line breaks. So, in this program, I want to join the words that are separated in the text while maintaining the correct words in the sentence. In…
Natalia Resende
  • 133
  • 1
  • 10
-3
votes
1 answer

C++ How to overwrite data in text file in c++?

#include #include using namespace std; string dataFile = "data.txt"; int counter; int main() { string input =""; fstream data; data.open(dataFile, ios::app | ios::out | ios::in ); getline(data, input); if…
sa5mmm
  • 11
  • 5
-3
votes
1 answer

Batch file to copy & overwrite files regardless of file names

I need to create a batch file that runs a daily backup of 10 files on to our server. To provide a brief background, we use a payment system that spits these files out each day, we'd like to ensure these are uploaded on to the server daily however,…
Admaine
  • 3
  • 6
-3
votes
3 answers

Code a webpage to self destruct after viewed

I have a message "my secret message" that I will type up on a html or php page. myexample.com/secretlink.html How can I make it that when someone accesses my page a timer maybe with JS will start(easy part) but when timer is up it activates a code…
Sammy7
  • 236
  • 4
  • 19
-3
votes
1 answer

how to change a php file from write to to overwrite

Hello I have a piece of code that writes to a text file, but I want the php file to completely overwrite the content of the text file, not just add to it, how must I rework my code to make it overwrite instead of just write. this is my code: …
parseguy
  • 129
  • 2
  • 14
-3
votes
4 answers

How can lists in a list be overwritten by new lists in a new list in Python?

If someone knows how to phrase the question to make it clearer, feel free to edit it! I have a list like this: a = [["Adolf", "10"], ["Hermann", "20"], ["Heinrich", "30"]] and I have an 'update' list like this: b = [["Rudolf", "40"], ["Adolf",…
d3pd
  • 6,679
  • 18
  • 56
  • 111
-3
votes
2 answers

Why is the variable of object of class box not being overwritten in another class?

public class Box{ public int length,width,height; public int volume; Box(int i, int j, int k){ this.length=i; this.width=j; this.height=k; } void setvolume(int i){ this.volume=i; } int…
Prabhjot Rai
  • 27
  • 1
  • 3
-3
votes
3 answers

How to overwrite whole page with new content with php?

I want to clear the other contents and rewrite the whole page with different content. I have: Mainpage: //blah blah, some pre-coded content Script.php
KevinT.
  • 272
  • 5
  • 15
-3
votes
1 answer

Why overwrite the ajax my content div width, if you click an internal links?

I have a function which load the internal links. The function is work fine except one thing. When you click a link, the content width is changed, to be smaller. I don't know why. { $(function() { $(".home…
-3
votes
3 answers

Python, adding a file into another file

I have to define a function: save_file(filename, new_list) which takes a file name and a new list and writes that list to the file in the correct format. So, for example, save_file(’file.txt’, load_file(’file.txt’)) (load_file is a predefined…
-3
votes
1 answer

java arraylist overwrites existing elements

I seem to have a frustrating problem - an element of my arraylist is overwritten. I have looked at many posts in many forums, but I have not managed to solve it. :chomp: In my program (which is actually a FBDK function block algorithm implemented…
Karel
  • 13
  • 1
  • 3
-4
votes
1 answer

Replace variable values whenever input is issued

I want to write a code that counts minutes in last three days. Let's say user makes an input every new day. He can see the sum of minutes for the last three days. I need to replace variables values whenever the new input is issued. So when the…
uberfella
  • 1
  • 1
-4
votes
1 answer

Second iterator overwrites first iterator

I am not (yet) a good coder in C++ and I am working through some tasks from a training book, where I wrote a class for IP-addresses. In this class I have a private vector which saves the single blocks of the address. I overloaded the ==…
-4
votes
2 answers

Overwrite wordpress css?

So i am currently creating a website for a eSports team in wordpress, and i have just ran into a problem, that i do not remember how to sort out. I remember from making chrome extensions there is a method for doing this, but i do not remember, and…
-4
votes
1 answer

Visual studio Overwriting Code

Our development team is currently working on a project in Visual Studio Professional 2015 that involves forms, etc. As it stands, the master code is stored on an individuals desktop but a copy can be found on a shared drive as well as my personal…
1 2 3
89
90