Skip to main content
edit title
Link
phunehehe
  • 20.6k
  • 29
  • 102
  • 155

how do I re-assigning int How to reassign new values to an array while the script is runningelements?

deleted 18 characters in body
Source Link
slm
  • 379.7k
  • 127
  • 793
  • 897

I amI'm trying to figure out like three or four things at the same time.theThe most I need help with is how to get the greatest number in all the files that I have created on a prior run of my script, that created a new file with a (int) identifier. to separate allall of the files that have no metadata, to single them out to keep all of them from being over written because as I amI'm storing them all in the same folder.

one)One is now to I be sure that I am getting the correct value in the element, I amI'm only using one element, the first one [0] to update the file by incrementing it in order from 0 ..... infinity. theThe incrementing I figured out using.

the part that confuses me thenthe most itis the syntax and how to I have its value changed by the computer and not me manually. I need to figure out how to get the biggest number that was put in the last file the script stopped at when making them, then have it begining beginning that number+1 when I start it up again so that it does not start all over again with the value of Zerozero only to over write the other files it created the last time I ran it.

asAs one should know the value goes away when I shut the computer off which loses the variables value. instead of going in the file and looking just get a script to do it for me. this is what I have so far to try and figure out how to get the greatest number. it is the how do I be sure that I am writing it correctly for it to get that new number inside of the [0] element to start with the last number I left off at plus one?

the BiggerThe bigger problem I amI'm having it figuringto figure out, how to pass variables all over the script to everywhere I need it to go. asAs I need to get the old array[0] with the new value inside of it to the proper place to use it. withinWithin a completely different while loop.

soSo I'd say my two major questions are how do I correctly write a re-assigning of an int value using a variable with a value inside of it into the array [ element ] other then incrementing or de-incrementing it by using the ++ or -- , and how do I pass it all around the script?

everythingEverything I've read always has this really big complected looking "what are they doing?" that is not even close to what I want to do examples that do nothing but confuse me more. I find it hard to fine the simple examples for me to learn from then grow from there in my programming.

I am trying to figure out like three or four things at the same time.the most I need help with is how to get the greatest number in all the files that I have created on a prior run of my script that created a new file with a (int) identifier to separate all of the files that have no metadata to single them out to keep all of them from being over written because as I am storing them all in the same folder.

one) is now to I be sure that I am getting the correct value in the element, I am only using one element, the first one [0] to update the file by incrementing it in order from 0 ..... infinity. the incrementing I figured out using.

the part that confuses me then most it the syntax and how to I have its value changed by the computer and not me manually. I need to figure out how to get the biggest number that was put in the last file the script stopped at when making them, then have it begining that number+1 when I start it up again so that it does not start all over again with the value of Zero only to over write the other files it created the last time I ran it.

as one should know the value goes away when I shut the computer off which loses the variables value. instead of going in the file and looking just get a script to do it for me. this is what I have so far to try and figure out how to get the greatest number. it is the how do I be sure that I am writing it correctly for it to get that new number inside of the [0] element to start with the last number I left off at plus one?

the Bigger problem I am having it figuring out how to pass variables all over the script to everywhere I need it to go. as I need to get the old array[0] with the new value inside of it to the proper place to use it. within a completely different while loop.

so I'd say my two major questions are how do I correctly write a re-assigning of an int value using a variable with a value inside of it into the array [ element ] other then incrementing or de-incrementing it by using the ++ or -- , and how do I pass it all around the script?

everything I've read always has this really big complected looking "what are they doing?" that is not even close to what I want to do examples that do nothing but confuse me more. I find it hard to fine the simple examples for me to learn from then grow from there in my programming.

I'm trying to figure out like three or four things at the same time.The most I need help with is how to get the greatest number in all the files that I have created on a prior run of my script, that created a new file with a (int) identifier. to separate all of the files that have no metadata, to single them out to keep all of them from being over written because as I'm storing them all in the same folder.

One is now to I be sure that I am getting the correct value in the element, I'm only using one element, the first one [0] to update the file by incrementing it in order from 0 ..... infinity. The incrementing I figured out using.

the part that confuses me the most is the syntax and how I have its value changed by the computer and not me manually. I need to figure out how to get the biggest number that was put in the last file the script stopped at when making them, then have it beginning that number+1 when I start it up again so that it does not start all over again with the value of zero only to over write the other files it created the last time I ran it.

As one should know the value goes away when I shut the computer off which loses the variables value. instead of going in the file and looking just get a script to do it for me. this is what I have so far to try and figure out how to get the greatest number. it is the how do I be sure that I am writing it correctly for it to get that new number inside of the [0] element to start with the last number I left off at plus one?

The bigger problem I'm having to figure out, how to pass variables all over the script to everywhere I need it to go. As I need to get the old array[0] with the new value inside of it to the proper place to use it. Within a completely different while loop.

So I'd say my two major questions are how do I correctly write a re-assigning of an int value using a variable with a value inside of it into the array [ element ] other then incrementing or de-incrementing it by using the ++ or -- , and how do I pass it all around the script?

Everything I've read always has this really big complected looking "what are they doing?" that is not even close to what I want to do examples that do nothing but confuse me more. I find it hard to fine the simple examples for me to learn from then grow from there in my programming.

grammer
Source Link
uxserx-bw
  • 536
  • 3
  • 7
  • 23

I am trying to figure out like three or four things at the same time.the most I need help with is how to get the greatest number in all the files that I have created foron a prior run of my script that created a new file with a (int) identifier to separate them all all of the files that have no metadata to signalsingle them out to keep all of them from being over written because as I am storing them all in the same folder.

one) is now to I be sure that I am getting the correct value in the element, only one element is all that I am only using one element, the first one [0] to update the file by incrementing it in order from 0 ..... infinity. the incrementing I figured out withusing.

the part that confuses me isthen most it the syntax and how to I have its value changed by the computer and not me manually. everything I've read is all about array is mostly [1]="billy" [2]="sally" etc. that does me no good as I already have that part down pat its the re asinging it while the motor is running. as I I need to figure out how to get the biggest number that was put in the last file the script stopped at when making them, then have it begining that the begining number+1 when I start it up again so that it does not start all over again with the value of Zero only to over write the other files it created the last time I ran it.

as one should know the value goes away when I shut the computer off which loses the variables value. instead of going in the file and looking just get a script to do it for me. this is what I ahvehave so far to try and figure out how to get the greatest number. it is the how do I be sure that I am writing it correctly for it to get that new number inside of the [0] element to start with the last number I left off at plus one?

I am trying to figure out like three or four things at the same time. how to get the greatest number in the files I have created for a prior run of my script that created a new file with a (int) identifier to separate them all of the files that have no metadata to signal them out to keep them from being over written as I am storing them all in the same folder.

one is now to I be sure that I am getting the correct value in the element, only one element is all that I am using the first one [0] to update the file by incrementing it in order from 0 ..... infinity. the incrementing I figured out with.

the part that confuses me is how to I have its value changed by the computer and not me manually. everything I've read is all about array is mostly [1]="billy" [2]="sally" etc. that does me no good as I already have that part down pat its the re asinging it while the motor is running. as I need to figure out how to get the biggest number that the script stopped at when making that the begining number+1 when I start it up again so that it does not start all over again with the value of Zero only to over write the other files it created the last time I ran it.

as one should know the value goes away when I shut the computer off which loses the variables value. instead of going in the file and looking just get a script to do it for me. this is what I ahve so far to try and figure out how to get the greatest number. it is the how do I be sure that I am writing it correctly for it to get that new number inside of the [0] element to start with the last number I left off at plus one?

I am trying to figure out like three or four things at the same time.the most I need help with is how to get the greatest number in all the files that I have created on a prior run of my script that created a new file with a (int) identifier to separate all of the files that have no metadata to single them out to keep all of them from being over written because as I am storing them all in the same folder.

one) is now to I be sure that I am getting the correct value in the element, I am only using one element, the first one [0] to update the file by incrementing it in order from 0 ..... infinity. the incrementing I figured out using.

the part that confuses me then most it the syntax and how to I have its value changed by the computer and not me manually. I need to figure out how to get the biggest number that was put in the last file the script stopped at when making them, then have it begining that number+1 when I start it up again so that it does not start all over again with the value of Zero only to over write the other files it created the last time I ran it.

as one should know the value goes away when I shut the computer off which loses the variables value. instead of going in the file and looking just get a script to do it for me. this is what I have so far to try and figure out how to get the greatest number. it is the how do I be sure that I am writing it correctly for it to get that new number inside of the [0] element to start with the last number I left off at plus one?

Source Link
uxserx-bw
  • 536
  • 3
  • 7
  • 23
Loading