You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows, if you want to get an exact copy, consider using CRLF new lines...
// Keep writing to the same file, increment counter
line := fmt.Sprintf("%s\r\n", scanner.Text())
if _, err := fmt.Fprintf(currentFile, line); err != nil {
log.Fatal("error writing to file:", err)
}
This way, when you want to verify all of the parts are equal to the original file:
On Windows, if you want to get an exact copy, consider using
CRLF
new lines...This way, when you want to verify all of the parts are equal to the original file:
Now,
the_same.csv
andbig.csv
will have matching MD5 checksums.Of course, you wouldn't want to do this for files that only use
CR
for new lines.The text was updated successfully, but these errors were encountered: