Comments (6)
@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.
Now it works thank you !!!
from proxy-check.
@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:
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.
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.
@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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proxy-check.