GithubHelp home page GithubHelp logo

Comments (6)

mmpx12 avatar mmpx12 commented on May 29, 2024 1

@Beykir Ok the function writeResult was only call when -m|--max-valid flag was set. can you try with version 1.0.4

from proxy-check.

Beykir avatar Beykir commented on May 29, 2024 1

Now it works thank you !!!

from proxy-check.

mmpx12 avatar mmpx12 commented on May 29, 2024

@bawzz234 thanks for reporting the issue.

Which version of proxy-check and windows are you using ? i tried with windows 11 and proxy-check 1.0.31 and everything works.

Can you run this and tell me what is the error message:

test.exe.zip

package main

import (
	"fmt"
	"os"
)

var text = [4]string{"testing", "write", "to", "file"}

func writeResult(output string, n int) {
	if output != "" {
		ff, err := os.OpenFile(output, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0755)
		if err != nil {
			panic(err)
		}
		defer ff.Close()
		for _, i := range text {
			if n == 1 {
				_, err := ff.WriteString(i + "\n")
				if err != nil {
					panic(err)
				}
			} else {
				_, err := fmt.Fprintln(ff, i)
				if err != nil {
					panic(err)
				}
			}
		}
	}
}

func main() {
	fmt.Println("testing with ff.WriteString")
	writeResult("output.txt", 1)
	fmt.Println("testing with fmt.Fprintln")
	writeResult("output2.txt", 2)
}

from proxy-check.

Beykir avatar Beykir commented on May 29, 2024

Iam on Win10 21H2 and for me it will also create no output file, but your test.exe file works without a error message and it will output "output.txt" and output2.txt

from proxy-check.

mmpx12 avatar mmpx12 commented on May 29, 2024

@Beykir thx, can you give me the proxy-check --version and the full command you are using.

test.exe.zip
Here an other binary. with (output, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0755) instead of (output, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0666) which is use in proxy-check. Does it still work with 0666 ?

from proxy-check.

Beykir avatar Beykir commented on May 29, 2024

version: 1.0.3
command: proxy-check.exe -f input.txt -o output.txt

yes, still works with 0666

from proxy-check.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.