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
-4
votes
3 answers

Overwrite an image file using Javascript

Is there a way to overwrite an image already existing in my site using javascript... if yes, what method, and any links for tutorials?
-4
votes
1 answer

"Overwrite" repeated values in a file (C)

Hello i have a little problem, and i cannot find a solution yet. I have a file (data.txt) with the next information: 5,5,6,2,5,2 1,4,2,3,7,2 4,2,5,2,3,4 5,5,6,2,5,2 4,5,2,6,2,4 2,1,5,6,3,2 And i want to set to 0 all the repeated lines, for example:…
-5
votes
2 answers

How to handle "Exception; must be caught or declared to be thrown"?

I am trying to write a test file that will overwrite the file I am working on so I can use it with a much more complex program. I keep getting an error message associated with creating a new PrintWriter. This is the error message: unreported…
-5
votes
4 answers

How to overwrite a PHP session variable

Is this possible? if ($_SESSION['variable'] = 'one' { $_SESSION['variable'] = 'car'; } It doesn't seem to be working. Is this enough information?
Ghost Echo
  • 1,777
  • 3
  • 30
  • 43
-6
votes
2 answers

Calling an overwritten child method from parent class?

I am wondering what would theoretically be the output of this code? Basically I am overwriting a method in the child class but I am calling that method in the parent class. I am hoping the output of this would be "Child" public class Animal { …
user3312266
  • 157
  • 1
  • 2
  • 12
-6
votes
5 answers

JAVA string how can i implement the length method

My roommate's teacher gave them a assignment to implement string length method in JAVA? we have thought out two ways. Check the element,and when get the out of bounds exception,it means the end of string,we catch this exception,then we can get the…
Wythe
  • 139
  • 3
  • 12
-6
votes
1 answer

How can I overwrite html file?

if (!System.IO.File.Exists(Server.MapPath(klasoradi + htmlname + ".html"))) { System.IO.File.WriteAllText(Server.MapPath(klasoradi + htmlname + ".html"), htmltext); } I'm using this code for creating and saving my html file. But I can't…
Seration
  • 213
  • 2
  • 4
  • 7
1 2 3
89
90