Skip to content

Instantly share code, notes, and snippets.

@Gabriela0890
Created April 28, 2020 22:27
Show Gist options
  • Save Gabriela0890/8bcfafa8997bc0289ab5822ba8105425 to your computer and use it in GitHub Desktop.
Save Gabriela0890/8bcfafa8997bc0289ab5822ba8105425 to your computer and use it in GitHub Desktop.
string lenght
void Extrae (string lin)
{
string aux;
int cont;
aux = "";
cont = 0;
while ((lin.Substring(cont, 1) != ",") && (cont < lin.Length))
{
aux = aux + lin.Substring(cont, 1);
cont = cont + 1;
}
valorX = double.Parse(aux);
cont = cont + 1;
aux = "";
while (cont < lin.Length)
{
aux = aux + lin.Substring(cont, 1);
cont = cont + 1;
}
valorY = double.Parse(aux);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment