indeed, i catch myself adjusting too much to my class' test cases (like i told in a reply before), than thinking outside of the box and going for the most efficient code overall - so not a lame point...
Type: Posts; User: smilaf99
indeed, i catch myself adjusting too much to my class' test cases (like i told in a reply before), than thinking outside of the box and going for the most efficient code overall - so not a lame point...
yes, yes - i noticed a little while after replying, just because i focused more on the file opening part.. i usually test-case it with exactly 2 arguments, just like test cases our class provides.....
TBH i dont see anything changed.. just the indentation - which got deleted when i copy-pasted the code here.. so if it works for you, then the code is not the problem but the text file... thanks! ;)
it is a snippet of code in which the error occurs.. and yes, i need exactly 2 arguments given, so im returning error value if it has more/less... i dont understand whats not clear :(
hi guys! pretty new here, just wanted to ask if someone can save me another 5hrs of research - what could cause segmentation fault while i open a file?
ps: it is in the same directory, and i tried...