Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

vba - Using FileSystemObject or the Input # statement to read data from text files -


i have read in data text files formated example below, e.g. 5 variables separated tab or space delimiter (not fixed-width columns).

montreal 0.2 h 3 500 otherplace 0.1 m 50 25 thirdplace 0.05 m 62 112 [...] 

i read these in using input # statement, , that's i've been doing, because it's easiest/laziest approach. but:

  • the input # statement doesn't recognize tabs delimiters.
  • the whole input # vernacular has "deprecated" feel it!

i'm thinking modernizing , reading files using filesystemobject methods (already writing files).

but doesn't requires lot of string manipulation parse out 5 variable values? suggestions on how best this?

also, what's way of determining how many lines there in text file? can redim arrays ahead of time.

have considered using jet read textfile recordset?

http://www.connectionstrings.com/textfile

jet installed recent versions of windows.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -