Click here to Skip to main content
15,887,828 members
Home / Discussions / C#
   

C#

 
QuestionHow to covert longitude and latitude to x and y values for state plane coordinate systems Pin
Member 1234906415-Apr-16 10:55
Member 1234906415-Apr-16 10:55 
AnswerRe: How to covert longitude and latitude to x and y values for state plane coordinate systems Pin
Sascha Lefèvre15-Apr-16 11:40
professionalSascha Lefèvre15-Apr-16 11:40 
AnswerRe: How to covert longitude and latitude to x and y values for state plane coordinate systems Pin
M Sukhdeep15-Apr-16 13:35
M Sukhdeep15-Apr-16 13:35 
AnswerRe: How to covert longitude and latitude to x and y values for state plane coordinate systems Pin
Patrice T15-Apr-16 19:34
mvePatrice T15-Apr-16 19:34 
AnswerRe: How to covert longitude and latitude to x and y values for state plane coordinate systems Pin
V.16-Apr-16 5:06
professionalV.16-Apr-16 5:06 
QuestionRead specific bytes continually from a file Pin
Tirumaleswara Reddy.K15-Apr-16 1:33
Tirumaleswara Reddy.K15-Apr-16 1:33 
AnswerRe: Read specific bytes continually from a file Pin
Richard MacCutchan15-Apr-16 1:53
mveRichard MacCutchan15-Apr-16 1:53 
AnswerRe: Read specific bytes continually from a file Pin
Pete O'Hanlon15-Apr-16 2:18
mvePete O'Hanlon15-Apr-16 2:18 
You're just reading 20 byte offsets here. A simple loop taking the offset into account would do that. It's fairly straightforward - you have the maximum possible number of bytes already, from your File.ReadAllBytes. From this, it is trivial to calculate how many iterations you would need to read 20 byte chunks (just divide the total number by 20 - as a test, can you figure out whether you need to add anything to this value for any remaining bytes - this should test whether you understand integer division in C#). Then, for each iteration, read 20 bytes - except for the last iteration, that might actually be less bytes if your file isn't easily divisible by 20. I have given you all the hints you need in this description to work out how to do this.
This space for rent

GeneralRe: Read specific bytes continually from a file Pin
Mycroft Holmes15-Apr-16 15:02
professionalMycroft Holmes15-Apr-16 15:02 
GeneralRe: Read specific bytes continually from a file Pin
Patrice T15-Apr-16 19:52
mvePatrice T15-Apr-16 19:52 
GeneralRe: Read specific bytes continually from a file Pin
Pete O'Hanlon16-Apr-16 2:09
mvePete O'Hanlon16-Apr-16 2:09 
AnswerRe: Read specific bytes continually from a file Pin
leon de boer15-Apr-16 15:46
leon de boer15-Apr-16 15:46 
AnswerRe: Read specific bytes continually from a file Pin
Patrice T15-Apr-16 20:04
mvePatrice T15-Apr-16 20:04 
QuestionInitiate properties at the creation of the object. Pin
Gilbert Consellado15-Apr-16 0:14
professionalGilbert Consellado15-Apr-16 0:14 
AnswerRe: Initiate properties at the creation of the object. Pin
Pete O'Hanlon15-Apr-16 0:36
mvePete O'Hanlon15-Apr-16 0:36 
QuestionJenkins (+MSBuild) not building my .specs dll (just building the start up project) Pin
Alaric_14-Apr-16 10:19
professionalAlaric_14-Apr-16 10:19 
AnswerRe: Jenkins (+MSBuild) not building my .specs dll (just building the start up project) Pin
Alaric_14-Apr-16 11:02
professionalAlaric_14-Apr-16 11:02 
GeneralHow to kill app that has the same name as the current one? Pin
Nemo196614-Apr-16 8:09
Nemo196614-Apr-16 8:09 
GeneralRe: How to kill app that has the same name as the current one? Pin
Eddy Vluggen14-Apr-16 8:22
professionalEddy Vluggen14-Apr-16 8:22 
GeneralRe: How to kill app that has the same name as the current one? Pin
Dave Kreskowiak14-Apr-16 8:23
mveDave Kreskowiak14-Apr-16 8:23 
GeneralRe: How to kill app that has the same name as the current one? Pin
OriginalGriff14-Apr-16 8:35
mveOriginalGriff14-Apr-16 8:35 
GeneralRe: How to kill app that has the same name as the current one? Pin
Nemo196614-Apr-16 8:59
Nemo196614-Apr-16 8:59 
GeneralRe: How to kill app that has the same name as the current one? Pin
Dave Kreskowiak14-Apr-16 9:29
mveDave Kreskowiak14-Apr-16 9:29 
GeneralRe: How to kill app that has the same name as the current one? Pin
OriginalGriff14-Apr-16 20:22
mveOriginalGriff14-Apr-16 20:22 
QuestionDB2 Load command with LOBS not loading full records Pin
Tej_dev14-Apr-16 7:46
Tej_dev14-Apr-16 7:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.